def digits.step
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
200# accept one digit and keep reading, or stop when it is not a digit
201def digits.step(ok: Bool, next: Unit -> Maybe<&2, Nat>) -> Maybe<&2, Nat>:
202 match ok:
203 case False{}:
204 None{}
205 case True{}:
206 next(Unit{})