def hex_word_go

bend-collections@1.0.0.0 · src/crypto/sha/core.bend:1161

import bend-collections@1.0.0.0/src/crypto/sha/core.bend as Core
import Base

1161def hex_word_go(n: Nat, +x: U32, acc: String) -> String:
1162  match n:
1163    case 0n:
1164      acc
1165    case 1n+p:
1166      hex_word_go(p, U32.shrn(x, 4n), SCon{hex_digit((x .&. 15 : U32)), acc})

Uses (6)

Used by (1)