Navigation
Synopsis Determine length of a string value.
Function int size(str s)
Usage import String;
Description Returns the length (number of characters) in string s.
Examples
rascal>import String;
ok
rascal>size("abc");
int: 3
rascal>size("");
int: 0
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.