def w8s.hex.go

bend-osdev-bytes@0.1.1.0 · bytes.bend:536

import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytes
import Base

536def w8s.hex.go(rs: List<&2, OctByte>, acc: String) -> String:
537  match rs:
538    case Nil{}:
539      acc
540    case Con{h, t}:
541      +b = oct.to(h)
542      w8s.hex.go(t, SCon{hex.digit(U32.shrn(b, 4n)), SCon{hex.digit(U32.and(b, 15)), acc}})

Uses (7)

Used by (3)