def chomp_from
import cli@0.2.0.0/run.bend as Runimport Base
36# c then t, less one final "\n".
37def chomp_from(t: String, +c: Char) -> String:
38 match t:
39 case SNil{}: chomp_end(Char.is_eq(c, '\n'), c)
40 case SCon{d, u}: SCon{c, chomp_from(u, d)}