Ever wonder how to read those destructuring forms? Do you want to know how to make your code clearer and shorter? Where can destructuring be used? And how do you construct each one? This course starts from the basics and works through all of the destructuring forms, ending with some examples and advice for using them.
Screencasts, Whiteboards, and Slides produced to help you learn
Curated selections of courses on a specific topic
If you’re looking to watch absolutely all of the courses on this site, I’ve put together a suggested order. Start at the beginning and just watch everything straight through. Be sure to click those checkmarks to track your progress.
Parts of courses on specific topics
We go over some cases where destructuring is very useful. We also look at why we shouldn’t use it all the time.
We take a look at regular function arguments, how order matters, and the
& syntax for rest arguments.
Keyword arguments are very helpful to add to functions. In Clojure, they’re a special case of map destructuring.
Map destructuring is more complex than sequences, so we’ll do it in two parts. The most common way to use map destructuring is a shortcut called
We see the basic form of map/associative destructuring and some of the more esoteric forms.
Destructuring forms can nest, which can be useful. It can also make our code less clear. They should be used with caution.