Navigation
Synopsis Print a value without subsequent newline.
Function void print(value arg)
Usage import IO;
Description Print a value on the output stream. See println for a version that adds a newline and printExp for a version that returns its argument as value.
Examples Note that the only difference with println is that no newline is added after the value is printed (note where the prompt ok appears):
rascal>import IO;
ok
rascal>print("Hello World");
Hello Worldok
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.