def text.rstrip

ezsys@0.1.0.0 · src/str.bend:64

import ezsys@0.1.0.0/src/str.bend as Str
import Base

64# the text with its trailing whitespace removed
65def text.rstrip(txt: String) -> String:
66  match txt:
67    case SNil{}:
68      SNil{}
69    case SCon{+h, t}:
70      text.rstrip.put(h, text.rstrip(t))

Uses (2)

Used by (2)