Navigation
Synopsis Returns string with leading and trailing whitespace removed.
Function str trim(str s)
Usage import String;
Examples
rascal>import String;
ok
rascal>trim("  jelly
>>>>>>>beans  ");
str: "jelly\nbeans"
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.