Nar.hex.val.digit: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/sha/nar.bend as Nar Lines 179-184 of ezx@1.11.0.0/src/sha/nar.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/sha/nar.bend&start_line=179&end_line=184 import Base def hex.val.digit(is_digit: Bool, +code: U32) -> U32: match is_digit: case True{}: U32.sub(code, 48) case False{}: hex.val.lower(Bool.and(U32.is_ge(code, 97), U32.is_le(code, 102)), code) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_ge https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=hex.val.lower