def chomp
import cli@0.2.0.0/run.bend as Runimport Base
42# s less one final "\n": IO.print_err adds it back.
43def chomp(s: String) -> String:
44 match s:
45 case SNil{}: SNil{}
46 case SCon{c, t}: chomp_from(t, c)
import cli@0.2.0.0/run.bend as Runimport Base
42# s less one final "\n": IO.print_err adds it back.
43def chomp(s: String) -> String:
44 match s:
45 case SNil{}: SNil{}
46 case SCon{c, t}: chomp_from(t, c)