Global, available without an import
print(...)
Writes its arguments to the output stream.
Parameters
... | any | values to write; each is converted the way tostring would convert it repeats |
Return value
null.
Notes
Several arguments in one call are joined with a single space; two separate calls are not - nothing is inserted between them, so print("a"); print("b") reads ab. print adds no trailing newline; call println for that, or end with a bare println().
Goes to the output stream (stdout on the command-line host) - the stream error and errorln never touch.
Example
print("no")
print("gap") // two calls, no newline between: text runs together
println()
print("a", "b", "c") // one call, several arguments: joined with a single space
println()
println("type(print(\"x\")):")
println(type(print("x"))) // print's own return valueOutput:
nogap
a b c
type(print("x")):
xnullSee also
println | Writes its arguments to the output stream, followed by a newline. |
error | Writes its arguments to the error stream. |
| globals | module index |