references/sleep-functions/print.md

GitHub

print

Category: InputOutput

Source: https://sleep.dashnine.org/manual/print.html


Synopsis

print([$handle], "text")

prints "text" to the specified handle (with no newline)

Parameters

$handle - the handle to write to (defaults to stdin/stdout)

"text" - the data to write

Examples

Example:

print("A spoon");
print(" full of");
print(" sugar...");
println(" helps the medicine go down");

Output:

A spoon full of sugar... helps the medicine go down

See Also

&bwrite; &printAll; &println; &writeb; &writeObject