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.

Want this course?

Team License

$200
  • HD Download
  • Watch Online
  • Lifetime Access
  • For your company

Download License

$24
  • HD Download
  • Watch Online
  • Lifetime Access
  • For an individual

Online License

$18
  • Watch Online
  • Lifetime Access
  • For an individual

Membership

$49/mo
  • HD Downloads
  • Watch Online
  • Full access
  • All Content
  • For an individual
Get access

Love it or leave it guarantee

If you don't learn as much from this course as you thought, just ask for a refund within 30 days and I'll give you your money back.

Destructuring

Lessons

Video time: 42m24s

Introduction
  • 2 min

We take a look at regular function arguments, how order matters, and the & syntax for rest arguments.

Sequences
  • 4 min

We take a look at regular function arguments, how order matters, and the & syntax for rest arguments.

Maps Part 1
  • 7 min

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 keys.

Maps Part 2
  • 6 min

We see the basic form of map/associative destructuring and some of the more esoteric forms.

Keyword Arguments
  • 4 min

Keyword arguments are very helpful to add to functions. In Clojure, they're a special case of map destructuring.

Where to Destructure
  • 3 min

Destructuring can happen in many places in Clojure. We go through a few of the common places where it can happen.

Nested Destructuring
  • 4 min

Destructuring forms can nest, which can be useful. It can also make our code less clear. They should be used with caution.

Destructuring Examples
  • 11 min

We go over some cases where destructuring is very useful. We also look at why we shouldn't use it all the time.