def hex_digit_if

bend-collections-laws-crypto@1.0.0.0 · src/crypto/sha/core.bend:1151

import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/core.bend as Core
import Base

1151def hex_digit_if(x: U32, small: Bool) -> Char:
1152  match small:
1153    case True{}:
1154      Chr{(48 + x : U32)}
1155    case False{}:
1156      Chr{(87 + x : U32)}

Uses (4)

Used by (1)