Run.chomp: def of cli@0.2.0.0 Import: import cli@0.2.0.0/run.bend as Run Lines 42-46 of cli@0.2.0.0/run.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/run.bend&start_line=42&end_line=46 import Base # s less one final "\n": IO.print_err adds it back. def chomp(s: String) -> String: match s: case SNil{}: SNil{} case SCon{c, t}: chomp_from(t, c) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/run.bend&name=chomp_from