def chomp

cli@0.2.0.0 · run.bend:42

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

Uses (2)

Used by (1)