Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Going Beyond Basic Lists > What You've Learned

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 and visualizing list-like and hierarchical data. Extra tools may be helpful for visualizing more complex data.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint