def hex.char
import ezx@1.11.0.0/src/lock/lock.bend as Lockimport 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)))