def any_of
import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalkimport 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))