def scan.hit

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

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

1088# any: only whether a match exists counts, so a match also drops the earlier threads.
1089def scan.hit(any: Bool, caps: List<&2, Maybe<&2, U32>>, items: List<&2, Th>) -> Sc:
1090  match any:
1091    case True{}:
1092      Sc{Nil{}, Some{caps}, True{}}
1093    case False{}:
1094      Sc{items, Some{caps}, True{}}

Uses (6)

Used by (1)