sigildocs

(scheme write)

(scheme write) - R7RS Write Library

Output procedures for displaying and writing Scheme values.

See: R7RS Small §6.13.3

Exports

displayprocedure

Display a value to a port (default: current output port).

(display "hello")      ; prints: hello
(display 42)           ; prints: 42
(display #\newline)    ; prints a newline

Strings are printed without quotes, characters without # notation.

Re-exported from (sigil core)

writeprocedure

Write a value in machine-readable form to a port.

(write "hello")  ; prints: "hello"
(write #\a)      ; prints: #\a
(write '(1 2))   ; prints: (1 2)

Unlike display, strings include quotes and characters include # notation.

Re-exported from (sigil core)

newlineprocedure

Write a newline to a port (default: current output port).

(newline)  ; prints a newline character

Re-exported from (sigil core)