[previous] [up] [next]     [contents]
Next: Data Definitions for Lists Up: Compound DataPart 2: Previous: Compound DataPart 2:

Lists

The first and rest operators work only on lists created with cons, i.e., non-empty lists. So

(first empty)

gives the error message:
first: expects type <non-empty list> as 1st arg: given empty



PLT