def known.in

bolt@1.27.0.0 · src/rules/style/noqa.bend:28

import bolt@1.27.0.0/src/rules/style/noqa.bend as Noqa
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
import bolt@1.27.0.0/src/codes.bend as Codes

28# some row of the table has the code
29def known.in(rows: List<&2, Codes.Entry>, +code: String) -> Bool:
30  match rows:
31    case Nil{}:
32      False{}
33    case Con{Codes.Entry{_s, id, _grp}, rest}:
34      Lazy.or_else(String.eq(id, code), _u => known.in(rest, code))

Uses (6)

Used by (1)