Wrapping Up

We kicked off this chapter by talking about vectors, Clojure’s almost an array sequential data structure. We then moved on to lists, which are Clojure’s other sequential data structure. We also explored some of the functions that can help you turn a data structure into useful information, and then on to how Clojure data structures are immutable. We discovered that you can make a vector or a list and fill it with whatever you want, but once it exists you ain’t changing it. We also looked at how you can get into trouble by forgetting just how immutable Clojure’s data structures are and at how the word persistent may not mean exactly what you think it means. Finally we had a look some real-world code to see vectors in action.

We are ...

Get Getting Clojure 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.