def spelled.seen

shake@0.7.0.0 · src/check.bend:30

import shake@0.7.0.0/src/check.bend as Check
import Base

30# whether a spelling, when there is one, is among those already seen
31def spelled.seen(sp: Maybe<&2, String>, +seen: List<&2, String>) -> Bool:
32  match sp:
33    case None{}:
34      False{}
35    case Some{ss}:
36      List.contains(~String, ~String.eq, seen, ss)

Uses (6)

Used by (1)