def hex.bytes
import ezx@1.11.0.0/src/sha/nar.bend as Narimport 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)}