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