NAME

print - format and print the UTF-8 representation of values based on a format specification

SYNOPSIS

print(fmtspec, val, ...)
print(file, fmtspec, val, ...)
file.print(fmtspec, val, ...)

DESCRIPTION

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.

RETURN VALUE

None

ERRORS

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)

EXAMPLE

        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

SEE ALSO

OADL Format Specifiers
format
say
read
new File