Paths.tested: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/paths.bend as Paths Lines 20-26 of bolt@1.27.0.0/src/paths.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/paths.bend&start_line=20&end_line=26 import Base import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy # is some segment but the last exactly `tests`? def tested(segs: List<&2, String>) -> Bool: match segs: case Nil{}: False{} case Con{+s, +rest}: Lazy.or_else(Bool.and(String.eq(s, "tests"), Bool.not(List.is_empty(&2, String, rest))), _u => tested(rest)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty 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