Navigation
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.
Examples
rascal>import String;
ok
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 ask.rascal-mpl.org.