Cli.arg_text_go: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7978-7984 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7978&end_line=7984 import Base # step's char, then bytes as text once step's other bytes are skipped. def arg_text_go(bytes: List<&2, U32>, step: ArgChar) -> String: match bytes step: case Nil{} ArgChar{c, more}: SCon{c, SNil{}} case Con{b, rest} ArgChar{c, 1n+m}: arg_text_go(rest, ArgChar{c, m}) case Con{b, +rest} ArgChar{c, 0n}: SCon{c, arg_text_go(rest, arg_char(b, rest))} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=cli@0.2.0.0/cli.bend&name=ArgChar https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=arg_char