def Entry.any

bend-lint-pack@0.1.1.0 · common.bend:294

import bend-lint-pack@0.1.1.0/common.bend as Common
import Base

294# Whether some entry names `owner`, as written or without its namespace.
295def Entry.any(entries: List<&2, String>, +owner: String) -> Bool:
296  match entries:
297    case Nil{}:
298      False{}
299    case Con{+e, rest}:
300      Bool.or(
301        Bool.or(Entry.hit(e, owner), Entry.hit(e, local(owner))),
302        Entry.any(rest, owner)
303      )

Uses (6)

Used by (1)