What You've Learned

In this chapter, we discussed exotic types of lists and created a drawing library for mathematical graphs. Along the way, you learned the following:

  • You can create lists in Lisp that end in a value other than nil. Such lists are displayed with an extra dot before the last item and are called dotted lists.

  • Pairs are what you get when you cons together two items that are not lists themselves. They can also be thought of as dotted lists that contain only two items.

  • Circular lists are lists where the last cons cell points to an earlier cons cell in the same list.

  • Association lists (alists) are lists of pairs. They can be used to store data that is in the form of keys associated with values.

  • Lisp syntax expressions are great for storing ...

Get Land of Lisp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.