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