Navigation
Synopsis Check whether a string ends with a given substring.
Function bool endsWith(str subject, str suffix)
Usage import String;
Description Yields true if string subject ends with the string suffix.
Examples
rascal>import String;
ok
rascal>endsWith("Hello.rsc", ".rsc");
bool: true
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.