def seek

bolt@1.27.0.0 · src/rules/imports.bend:126

import bolt@1.27.0.0/src/rules/imports.bend as Imports
import 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))

Uses (5)

Used by (1)