O'Reilly logo

Clojure for Finance by Timothy Washington

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 (http://clojure.org/cheatsheet) and look at some of the basic functions needed to do the following. Try evaluating these functions in your REPL:

  • Accessing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required