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
#t
ifs
is the-empty-stream,#f
otherwise.
Returns the current time measured as the number of microseconds passed since a fixed beginning.
n : positive?
- Returns a random integer between
0
andn-1
(inclusive) ifn
is an exact integer. Otherwise, returns a random inexact number between0
andn
(exclusive).
The amb
operator.
Additionally, true
, false
, identity
, and error
are provided from Racket.