display | more...
Prev Up Next

Scheme's writer procedures take the object that is to be written and an optional output port argument. If the port is not specified, the current output port (usually the console) is assumed.

Writing can be character- or s-expression-based.

The procedure write-char writes the given character (without the #\) to the port.

The procedures write and display both write the given s-expression to the port, with one difference: write attempts to use a machine-readable format and display doesn't. Eg, write uses double quotes for strings and the #\ syntax for characters. display doesn't.

Prev Up Next

Log in or register to write something here or to contact authors.