Num.span_digits: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/num.bend as Num Lines 41-47 of bend-toon-codec@0.1.0.0/src/num.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/num.bend&start_line=41&end_line=47 import Base # Leading run of ASCII digits, and the rest. def span_digits(+s: String) -> Sp: match s: case SNil{}: Sp{SNil{}, SNil{}} case SCon{Chr{c}, t}: sp.pick(Char.is_digit(Chr{c}), c, s, span_digits(t)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_digit https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/num.bend&name=Sp https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/num.bend&name=sp.pick