Writes the formatted text to standard output, or standard error when requested. Returns the number of bytes written. Formatting uses the same argument grammar and active print style as the string-builder interface.
print :: (
format_string: string,
args: ..Any,
to_standard_error := false
) -> bytes_printed: s64
Parameters
- format_string: string
- the text and insertion markers
- args: ..Any
- the values to print, in order
- to_standard_error := false
- select standard error instead of standard output
Returns
- bytes_printed: s64
print("% + % = %\n", 1, 2, 1 + 2);