Plan.stated: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/init/plan.bend as Plan Lines 84-91 of ezx@1.11.0.0/src/init/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/init/plan.bend&start_line=84&end_line=91 import Base # whether a file already states this rule, on a line of its own. A rule buried # in a longer line is not the rule, so the comparison is against whole lines. def stated(ls: List<&2, String>, +rule: String) -> Bool: match ls: case Nil{}: False{} case Con{+h, t}: stated.step(String.eq(String.trim(h), rule), _u => stated(t, rule)) 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.trim https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/init/plan.bend&name=stated.step