def seek
import bolt@1.27.0.0/src/rules/imports.bend as Importsimport Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
126# `has`, stopping at the first hit
127def seek(ps: List<&2, String>, +pp: String) -> Bool:
128 match ps:
129 case Nil{}:
130 False{}
131 case Con{p, rest}:
132 Lazy.or_else(String.eq(p, pp), _u => seek(rest, pp))