Ops.digits_only: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/system/release/ops.bend as Ops Lines 4-10 of near-v-framework@0.4.0.0/domain/architecture/system/release/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/release/ops.bend&start_line=4&end_line=10 import Base # ---- the hub's rules: a name is 12 to 64 characters of a-z, 0-9 and -; a version is four numbers ---- def digits_only(cs: List<&2, Char>) -> Bool: match cs: case []: True{} case c <> rest: Char.is_digit(c) && digits_only(rest) Uses (5): 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=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_digit https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List