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