Fixed.nat.go: def of emerging-ezjson@1.3.0.0 Import: import emerging-ezjson@1.3.0.0/src/fixed.bend as Fixed Lines 94-100 of emerging-ezjson@1.3.0.0/src/fixed.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezjson@1.3.0.0/src/fixed.bend&start_line=94&end_line=100 import Base # decimal digits read onto acc, most significant first def nat.go(txt: String, acc: Nat) -> Nat: match txt: case SNil{}: acc case SCon{hd, tl}: nat.go(tl, Nat.add(Nat.mul(acc, 10n), digit.nat(hd))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/fixed.bend&name=digit.nat