def value

bolt@1.27.0.0 · src/rules/correctness/escape.bend:65

import bolt@1.27.0.0/src/rules/correctness/escape.bend as Escape
import Base

65# the digits' octal value
66def value(cs: List<&2, Char>, +acc: U32) -> U32:
67  match cs:
68    case Nil{}:
69      acc
70    case Con{Chr{+x}, t}:
71      value(t, ((acc * 8) + (x - 48) : U32))

Uses (6)

Used by (1)