def hex.char

ezx@1.11.0.0 · src/lock/lock.bend:139

import ezx@1.11.0.0/src/lock/lock.bend as Lock
import Base

139# whether a hash is a package's `0x` name as bend reads one out of a names
140# file: `0x` and 32 lowercase hex digits
141def hex.char(+ch: Char) -> Bool:
142  +x = Char.to_u32(ch)
143  Bool.or(Char.is_digit(ch), Bool.and(U32.is_ge(x, 97), U32.is_le(x, 102)))

Uses (8)

Used by (1)