def hex.value

yaml-for-bend@0.1.1.0 · scan.bend:224

import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base

224def hex.value(s: String, acc: U32) -> U32:
225  match s:
226    case SNil{}:
227      acc
228    case SCon{c, t}:
229      hex.value(t, U32.add(U32.mul(acc, 16), hex.digit(c)))

Uses (5)

Used by (2)