The programs in the book are written in an old subset of Scheme, which is a dialect of Lisp.
An alias for ().
x : number?- Returns
(+ x 1).
x : number?- Returns
(- x 1).
The null/empty stream.
Produces a stream.
s : stream?- Returns
#tifsis the-empty-stream,#fotherwise.
Returns the current time measured as the number of microseconds passed since a fixed beginning.
n : positive?- Returns a random integer between
0andn-1(inclusive) ifnis an exact integer. Otherwise, returns a random inexact number between0andn(exclusive).
The amb operator.
Additionally, true, false, identity, and error are provided from Racket.