def hex_digit_if

bend-collections@1.0.0.0 · src/crypto/sha/packed/sha256.bend:10

import bend-collections@1.0.0.0/src/crypto/sha/packed/sha256.bend as Sha256
import 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)}

Uses (4)

Used by (1)