Parse.Parse.ascii_digit.val: def of bend-scanner@0.1.0.0 Import: import bend-scanner@0.1.0.0/parse.bend as Parse Lines 91-98 of bend-scanner@0.1.0.0/parse.bend: https://jend.leeeet.dev/read.txt?path=bend-scanner@0.1.0.0/parse.bend&start_line=91&end_line=98 import Base def Parse.ascii_digit.val( +h: Char, t: String, off: Nat, dig: Bool ) -> Result<&2, &2, Parse.Error, Parse.Dec>: match dig: case False{}: Fail{Unexpected{off, h}} case True{}: Done{Dec{(Char.to_u32(h) - Char.to_u32('0') : U32), Cur{t, 1n+off}}} Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.to_u32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=bend-scanner@0.1.0.0/parse.bend&name=Parse.Cur https://jend.leeeet.dev/definition.txt?path=bend-scanner@0.1.0.0/parse.bend&name=Parse.Dec https://jend.leeeet.dev/definition.txt?path=bend-scanner@0.1.0.0/parse.bend&name=Parse.Error