def any_of

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:388

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy

388# does the list hold a name the set has?
389def any_of(cs: List<&2, String>, +set: List<&2, String>) -> Bool:
390  match cs:
391    case Nil{}:
392      False{}
393    case Con{c, t}:
394      Lazy.or_else(List.contains(~String, ~String.eq, set, c), _u => any_of(t, set))

Uses (6)

Used by (1)