def u32

bend-kit-camber@0.15.0.1 · input.bend:28

import bend-kit-camber@0.15.0.1/input.bend as Input
import Base

28# Nonempty ASCII decimal only; arithmetic happens only after the overflow guard.
29def u32(text: String) -> Maybe<&2, U32>:
30  match text:
31    case SNil{}: None{}
32    case SCon{c, rest}: decimal.go(SCon{c, rest}, 0)

Uses (4)

Used by (1)