def hex_digit_if
import bend-collections@1.0.0.0/src/crypto/sha/core.bend as Coreimport Base
1151def hex_digit_if(x: U32, small: Bool) -> Char:
1152 match small:
1153 case True{}:
1154 Chr{(48 + x : U32)}
1155 case False{}:
1156 Chr{(87 + x : U32)}