String module

eat_trailing_spaces

procedureSource

_s without the spaces, tabs and line breaks at its end. The same as trim_right.

eat_trailing_spaces :: (_s: string) -> string

Parameters

_s: string

Returns

string
Example↗
assert(eat_trailing_spaces("word \t\n") == "word");

See also