Clojure Destructuring Tutorial and Cheat Sheet by John Louis Del Rosario.
From the post:
When I try to write or read some Clojure code, every now and then I get stuck on some destructuring forms. It’s like a broken record. One moment I’m in the zone, then this thing hits me and I have to stop what I’m doing to try and grok what I’m looking at.
So I decided I’d write a little tutorial/cheatsheet for Clojure destructuring, both as an attempt to really grok it (I absorb stuff more quickly if I write it down), and as future reference for myself and others.
Below is the whole thing, copied from the original gist. I’m planning on adding more (elaborate) examples and a section for compojure’s own destructuring forms. If you want to bookmark the cheat sheet, I recommend the gist since it has proper syntax highlighting and will be updated first.
John’s right, the gist version is easier to read.
As of 27 July 2014, the sections on “More Examples” and “Compojure” are blank if you feel like contributing.
I first saw this in a tweet by Daniel Higginbotham.