def hex_word_go
import bend-collections@1.0.0.0/src/crypto/sha/packed/sha256.bend as Sha256import Base
20def hex_word_go(n: Nat, +x: U32, acc: String) -> String:
21 match n:
22 case 0n:
23 acc
24 case 1n+p:
25 hex_word_go(p, U32.shrn(x, 4n), SCon{hex_digit((x .&. 15 : U32)), acc})