def digits
import lawful-fields@0.1.1.0/fields.bend as Fieldsimport Base
import lawful-bytes@0.1.1.0/defs.bend as D
import lawful-bytes@0.1.1.0/bytes.bend as B
83# Bytes from .. to-1 are one or more decimal digits (a number of any size).
84def digits(b: D.Bytes, +from: U32, +to: U32) -> D.Bytes & Bool:
85 digits.go(Nat.sub(U32.to_nat(to), U32.to_nat(from)), B.at(b, from), from, U32.is_lt(from, to))