[previous] [up] [next]     [contents]
Next: Processing Lists of Arbitrary Up: Compound DataPart 2: Previous: Lists- No Notes

Data Definitions for Lists of Arbitrary Length

The first and rest operators only operate 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