def hex_digit_if
import bend-collections@1.0.0.0/src/crypto/sha512/sha512.bend as Sha512import Base
19def hex_digit_if(x: U32, small: Bool) -> Char:
20 match small:
21 case True{}:
22 Chr{(48 + x : U32)}
23 case False{}:
24 Chr{(87 + x : U32)}