def hex_digit_if
import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Coreimport Base
3586# Decode hexadecimal digit if for the SHA-256 compression implementation.
3587def hex_digit_if(digit: U32, small: Bool) -> Char:
3588 match small:
3589 case True{}:
3590 Chr{(48 + digit : U32)}
3591 case False{}:
3592 Chr{(87 + digit : U32)}