String module

trim_right

procedureSource

s without the chars at its end; the result points into s.

trim_right :: (s: string, chars := DEFAULT_SPACES) -> string

Parameters

s: string

Returns

string
Example↗
assert(trim_right("  hi ") == "  hi");

See also