def starts

bend-kit-regex@0.8.0.0 · regex.bend:900

import bend-kit-regex@0.8.0.0/regex.bend as Regex
import Base

900def starts(xs: List<&2, Inst>, +c: U32) -> Bool:
901  match xs:
902    case Nil{}:
903      False{}
904    case Con{ISet{neg, set}, t}:
905      Bool.xor(neg, items.has(set, c)) || starts(t, c)
906    case Con{i, t}:
907      starts(t, c)

Uses (7)

Used by (3)