def bits.char
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1224def bits.char(live: Bool, +c: U32, neg: Bool, items: List<&2, Item>, +follow: U32, +fin: Bool, +end: Bool, acc: Bs) -> Bs:
1225 match live:
1226 case False{}:
1227 acc
1228 case True{}:
1229 bits.take(Bool.xor(neg, items.has(items, c)), follow, fin, end, acc)