def dig.low
import emerging-eztoml@0.9.0.0/main.bend as EmergingEztomlimport Base
447# a lowercase hex digit, otherwise an uppercase one
448def dig.low(ok: Bool, +uu: U32) -> U32:
449 match ok:
450 case True{}:
451 U32.sub(uu, 87)
452 case False{}:
453 dig.up(Bool.and(U32.is_ge(uu, 65), U32.is_le(uu, 70)), uu)