def hex_digit_if
import bend-collections@1.0.0.0/src/crypto/sha/packed/sha256.bend as Sha256import Base
10def hex_digit_if(x: U32, small: Bool) -> Char:
11 match small:
12 case True{}:
13 Chr{(48 + x : U32)}
14 case False{}:
15 Chr{(87 + x : U32)}