def chomp_from

cli@0.2.0.0 · run.bend:36

import cli@0.2.0.0/run.bend as Run
import 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)}

Uses (4)

Used by (1)