#173
Intro to Destructuring 2
Difficulty: | Easy |
Topics: | destructuring |
Sequential destructuring allows you to bind symbols to parts of
sequential things (vectors, lists, seqs, etc.): (let [bindings* ] exprs*) Complete
the bindings so all let-parts evaluate to 3.
(= 3 (let [[__] [+ (range 3)]] (apply __)) (let [[[__] b] [[+ 1] 2]] (__ b)) (let [[__] [inc 2]] (__))) |