Run.chomp_from: def of cli@0.2.0.0 Import: import cli@0.2.0.0/run.bend as Run Lines 36-40 of cli@0.2.0.0/run.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/run.bend&start_line=36&end_line=40 import Base # c then t, less one final "\n". def chomp_from(t: String, +c: Char) -> String: match t: case SNil{}: chomp_end(Char.is_eq(c, '\n'), c) case SCon{d, u}: SCon{c, chomp_from(u, d)} Uses (4): 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=cli@0.2.0.0/run.bend&name=chomp_end