def hex_digit_if

bend-collections@1.0.0.0 · src/crypto/sha512/sha512.bend:19

import bend-collections@1.0.0.0/src/crypto/sha512/sha512.bend as Sha512
import Base

19def hex_digit_if(x: U32, small: Bool) -> Char:
20  match small:
21    case True{}:
22      Chr{(48 + x : U32)}
23    case False{}:
24      Chr{(87 + x : U32)}

Uses (4)

Used by (1)