Output

If port is omitted from any output procedure, it defaults to the value returned by (current-output-port). It is an error to attempt an output operation on a closed port.

(write obj ) write library procedure
(write obj port ) write library procedure
Writes a representation of obj to the given textual output port. Strings that appear in the written representation are enclosed in quotation marks, and within those strings backslash and quotation mark characters are escaped by backslashes. Symbols that contain non-ASCII characters are escaped with vertical lines. Character objects are written using the #\ notation.

The write procedure returns an unspecified value.

(display obj ) write library procedure
(display obj port ) write library procedure
Writes a representation of obj to the given textual output port. Strings that appear in the written representation are output as if by write-string instead of by write. Symbols are not escaped. Character objects appear in the representation as if written by write-char instead of by write.

The display representation of other objects is unspecified. However, display must not loop forever on self-referencing pairs, vectors, or records. Thus if the normal write representation is used, datum labels are needed to represent cycles as in write.

The display procedure returns an unspecified value.

Rationale: The write procedure is intended for producing machine-readable output and display for producing human- readable output.

(newline ) procedure
(newline port ) procedure
Writes an end of line to textual output port. Returns an unspecified value.

(write-char char ) procedure
(write-char char port ) procedure
Writes the character char (not an external representation of the character) to the given textual output port and returns an unspecified value.

(write-string string ) procedure
(write-string string port ) procedure
(write-string string port start ) procedure
(write-string string port start end ) procedure
Writes the characters of string from start to end in left-toright order to the textual output port.

(write-bytevector bytevector port ) procedure
Writes the bytes of bytevector from start to end in left-to-right order to the binary output port.

(flush-output-port ) procedure
(flush-output-port port ) procedure
Flushes any buffered output from the buffer of output-port to the underlying file or device and returns an unspecified value.

husk-scheme online documentation rev 3.19.3 (2016.07.10)