def scan.hit
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport 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{}}