Forms and builtins
Output and errors
4 builtins. Every example below ran on the evaluator, and the result shown is what it returned.
display
arity 1(display x)
Writes a value for humans (strings without quotes).
(display "hi ") (display '(1 "two"))stdouthi (1 two)
write
arity 1(write x)
Writes a value so it reads back (strings quoted).
(write "hi") (write '(1 "two"))stdout"hi"(1 "two")
newline
arity 0(newline)
Writes a line break.
(display 1) (newline) (display 2)stdout1 2
error
arity 1+(error message irritant ...)
(error message irritant ...): stops with an error.
(error "bad input:" 42)errorbad input: 42