Void rtrim(var String x, Bool(Char) fn=isSpace)
Arguments
x: The string to trimfn: The trimming function. Returns true if characters should be trimmed, false otherwise. The default function is Prelude::isSpace which trims whitespace.
Usage
Remove characters in-place from the end of a String as determined by the trimming function.