def hex_digit_if

bend-collections@1.0.0.0 · src/crypto/blake/blake2b/hex.bend:4

import bend-collections@1.0.0.0/src/crypto/blake/blake2b/hex.bend as Hex
import Base

4def hex_digit_if(x: U32, small: Bool) -> Char:
5  match small:
6    case True{}:
7      Chr{(48 + x : U32)}
8    case False{}:
9      Chr{(87 + x : U32)}

Uses (4)

Used by (1)