Tokens.digits_ok: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/tokens.bend as Tokens Lines 67-75 of bolt@1.27.0.0/src/rules/tokens.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/tokens.bend&start_line=67&end_line=75 import Base import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy # digits alone, one or more: a U32 literal's chars def digits_ok(cs: List<&2, Char>) -> Bool: match cs: case Con{+c, Nil{}}: Char.is_digit(c) case Con{+c, t}: Lazy.and_then(Char.is_digit(c), _u => digits_ok(t)) case Nil{}: False{} 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=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 https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lazy/lazy.bend&name=and_then