Fixed.nonzero: def of emerging-ezjson@1.3.0.0 Import: import emerging-ezjson@1.3.0.0/src/fixed.bend as Fixed Lines 179-185 of emerging-ezjson@1.3.0.0/src/fixed.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezjson@1.3.0.0/src/fixed.bend&start_line=179&end_line=185 import Base # whether any digit is not 0 def nonzero(txt: String) -> Bool: match txt: case SNil{}: False{} case SCon{hd, +tl}: nonzero.at(Char.is_eq(hd, '0'), _u => nonzero(tl)) 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_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/fixed.bend&name=nonzero.at