previous | index | next

Constructing Lists

"consing" is tedious for longer lists.

Q: Why can't we just do:

          (1 2 3) ?
A: Scheme will think it's an application.

We can construct lists with the built-in list procedure:

          (list 1 2 3) ⇒ (1 2 3)
list is a procedure that takes a variable number of arguments.

previous | index | next