Settings.lead0: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/settings.bend as Settings Lines 228-233 of cswap-bend-cli@0.1.0.0/settings.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&start_line=228&end_line=233 import Base def lead0(s: String) -> Nat: match s: case SNil{}: 0n case SCon{+c, +t}: lead0.pick(Char.is_eq(c, '0'), lead0(t)) Uses (5): 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=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&name=lead0.pick