print - format and print the UTF-8 representation of values based on a format specification
print(fmtspec, val,
...)
print(file, fmtspec, val,
...)
file.print(fmtspec, val,
...)
The list of values (which may be empty) is formatted according to fmtspec and the UTF-8 stream is written to file. If file is not specified, io::Output is assumed.
None
ArgCheck for an incorrect number of arguments
TypeCheck for a non-string fmtspec or a
non-file file
AccessCheck for an
attempt to access a closed file
FormatCheck for a syntax error in fmtspec
(note that static format strings will be checked at compile-time, not
run-time)
IoCheck for other miscellaneous
I/O errors (see ferror)
print("'3x2:', 3I2, ' 2x3:', 2I2", [2,3].iterate(), [3,2].iterate())
3x2: 0 1 2 2x3: 0 1
3 4 5 2 3
4 5