def hex_digit_if
import bend-collections@1.0.0.0/src/crypto/keccak/hex.bend as Heximport Base
3def hex_digit_if(x: U32, small: Bool) -> Char:
4 match small:
5 case True{}:
6 Chr{(48 + x : U32)}
7 case False{}:
8 Chr{(87 + x : U32)}