def hex.bytes

ezx@1.11.0.0 · src/sha/nar.bend:190

import ezx@1.11.0.0/src/sha/nar.bend as Nar
import Base

190def hex.bytes(text: String) -> String:
191  match text:
192    case SNil{}:
193      ""
194    case SCon{_a, SNil{}}:
195      ""
196    case SCon{a, SCon{b, t}}:
197      SCon{byte((U32.shln(hex.val(a), 4n) + hex.val(b) : U32)), hex.bytes(t)}

Uses (6)

Used by (1)