def hits.any

bolt@1.27.0.0 · src/rules/suspicious/unused.bend:194

import bolt@1.27.0.0/src/rules/suspicious/unused.bend as Unused
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy

194# is the cell at (line, col) among these?
195def hits.any(cs: List<&2, Cell>, +line: U32, +col: U32) -> Bool:
196  match cs:
197    case Nil{}:
198      False{}
199    case Con{Cell{l, c}, rest}:
200      Lazy.or_else(Bool.and(U32.is_eq(l, line), U32.is_eq(c, col)), _u => hits.any(rest, line, col))

Uses (7)

Used by (1)