Re.test: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/re.bend as Re Lines 44-63 of yaml-for-bend@0.1.1.0/re.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/re.bend&start_line=44&end_line=63 import Base def test(cls: Cls, +c: Char) -> Bool: match cls: case Digit{}: Char.is_digit(c) case Hex{}: Bool.or(Char.is_digit(c), Bool.or(between(code(c), 65, 70), between(code(c), 97, 102))) case Range{lo, hi}: between(code(c), code(lo), code(hi)) case Lit{x}: Char.is_eq(c, x) case OneOf{chars}: in(c, chars) case NoneOf{chars}: Bool.not(in(c, chars)) case Alpha{}: is_alpha(code(c)) case Space{}: Char.is_space(c) case Anything{}: True{} Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or 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=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_space https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/re.bend&name=Cls https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/re.bend&name=between https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/re.bend&name=code https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/re.bend&name=in https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/re.bend&name=is_alpha