def trim.back.at
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
91# a character kept before the rest of a line with its trailing blanks
92# dropped. The character goes too when it is blank and nothing follows it.
93def trim.back.at(gone: Bool, head: Char, rest: String) -> String:
94 match gone:
95 case True{}:
96 SNil{}
97 case False{}:
98 SCon{head, rest}