Check.spelled.seen: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/check.bend as Check Lines 30-36 of shake@0.7.0.0/src/check.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/check.bend&start_line=30&end_line=36 import Base # whether a spelling, when there is one, is among those already seen def spelled.seen(sp: Maybe<&2, String>, +seen: List<&2, String>) -> Bool: match sp: case None{}: False{} case Some{ss}: List.contains(~String, ~String.eq, seen, ss) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.contains https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq