© Mark McDonnell 2017

Mark McDonnell, Quick Clojure, https://doi.org/10.1007/978-1-4842-2952-1_6

6. Destructuring

Mark McDonnell

(1)southend-on-Sea, UK

In this chapter, we will be covering the concept of destructuring in Clojure.

Specifically, Clojure provides support for what is referred to as abstract structural bindings . . . hmm? Yeah, let’s break that down a bit.

What this means, for humans, is that Clojure provides us the ability to extract data from a data structure without having to actually traverse the data structure itself. This concept is typically referred to as destructuring.

Although this is quite a short chapter, I would strongly recommend that you spend some time upon completing this section coding in the REPL and experimenting with ...

Get Quick Clojure: Effective Functional Programming 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.