Chapter 3Processing Sequential Data

Once we have domain entities and collections of entities or values, we need to be able to answer questions or transform our data into new forms to satisfy our application requirements. Imperative languages often process collections by explicitly looping over a collection, but Clojure encourages thinking at the level of data in aggregate, applying transformations to a whole collection at once.

Rather than build an extensive set of functions that operate on a single data structure, Clojure builds all of its transformations on the sequence abstraction. Sequences are the key abstraction that connects two of the most important parts of Clojure: immutable collections and the transformation library.

By abstraction ...

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