Navigation
Synopsis Print a value followed by a newline and return it as result.
Function
  1. &T printlnExp(&T v)
  2. &T printlnExp(str msg, &T v)
Usage import IO;
Examples
rascal>import IO;
ok
rascal>printlnExp(3.14);
3.14
real: 3.14
rascal>printlnExp("The value of PI is approximately ", 3.14);
The value of PI is approximately 3.14
real: 3.14
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.