Cli.value_cut: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 5351-5358 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=5351&end_line=5358 import Base # Where an option's value or repeat starts: " <", "[=", or a final "...". def value_cut(s: String) -> Nat: match s: case SNil{}: 0n case SCon{Chr{32}, SCon{Chr{60}, tail}}: 0n case SCon{Chr{91}, SCon{Chr{61}, tail}}: 0n case SCon{Chr{46}, SCon{Chr{46}, SCon{Chr{46}, SNil{}}}}: 0n case SCon{head, tail}: 1n+value_cut(tail) Uses (7): 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=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil