def until
import gralha-text-scan@0.1.0.1/scan.bend as Scanimport Base
77def until(s: String, +end: U32, acc: String) -> Scan:
78 match s:
79 case SNil{}: Scan{rev(acc, ""), ""}
80 case SCon{Chr{c}, t}:
81 +cc = c
82 until.go(t, U32.is_eq(cc, end), cc, end, acc)