def spelled.seen
import shake@0.7.0.0/src/check.bend as Checkimport 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)