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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access