def hex_digit_if

bend-collections@1.0.0.0 · src/crypto/blake/blake2s/hex.bend:3

import bend-collections@1.0.0.0/src/crypto/blake/blake2s/hex.bend as Hex
import 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)}

Uses (4)

Used by (1)