Synopsis Check whether a string starts with a given prefix.
Function bool startsWith(str subject, str prefix)
Usage import String;
Description Yields true if string subject starts with the string prefix.
rascal>import String;
rascal>startsWith("Hello.rsc", "Hell");
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