def any_of
import bolt@1.27.0.0/src/rules/suspicious/eager.bend as Eagerimport Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
46# does the list hold a name the set has?
47def any_of(cs: List<&2, String>, +set: List<&2, String>) -> Bool:
48 match cs:
49 case Nil{}:
50 False{}
51 case Con{c, t}:
52 Lazy.or_else(List.contains(~String, ~String.eq, set, c), _u => any_of(t, set))