Data transformation patterns and principles

Clojure's collection types are, by definition, composite as they are composed of many elements. However, we can also put collections within each other, nesting these data structures to fit your needs. As such, we'd like to know the best approaches to build composite collections, access, and update collections. We'll also look at patterns of grouping, sorting, mapping, filtering, and reducing our data, as well as avoiding mutations. We'll also take a look at how to introduce side effects when necessary. We're going to return to the Clojure cheatsheet ( and look at some of the basic functions needed to do the following. Try evaluating these functions in your REPL:

  • Accessing ...

Get Clojure for Finance now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.