Navigation
Synopsis Right align s in string of length n using space.
Function
  1. str right(str s, int n)
  2. str right(str s, int n, str pad)
Usage import String;
Examples
rascal>import String;
ok
rascal>right("abc", 10);
str: "       abc"
rascal>right("abc", 10, "x");
str: "xxxxxxxabc"
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.