def until

gralha-text-scan@0.1.0.1 · scan.bend:77

import gralha-text-scan@0.1.0.1/scan.bend as Scan
import 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)

Uses (7)

Used by (24)