Rules.has: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules.bend as Rules Lines 115-121 of bolt@1.27.0.0/src/rules.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules.bend&start_line=115&end_line=121 import Base import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy # whether a directory is among the directories def has(ds: List<&2, String>, +dd: String) -> Bool: match ds: case Nil{}: False{} case Con{d, rest}: Lazy.or_else(String.eq(d, dd), _u => has(rest, dd)) Uses (5): 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lazy/lazy.bend&name=or_else