Chapter 2Vectors and Lists

Now that you have a few basic Clojure concepts under your intellectual belt, it’s time to think bigger. Life is full of complicated things, things that can’t be represented by a single number or a lone string. So in this chapter we’re going to look at a couple of the collections that Clojure has to offer, namely vectors and lists. We’ll see just how easy it is to create these two sequential data structures and explore some of the functions that Clojure supplies for doing interesting things with them. Finally, we’ll look at some real-world code to discover that a little Clojure knowledge goes a long way.

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.