Closed fasterthanlime closed 9 years ago
Namely:
(let [[a b c] [1 2 3]])
(let [{x :x y :y} {:x 1.71 :y 1.71}])
&
(let [[first & rest] long-ass-list])
:keys
(let [{:keys [x y]} point])
:strs
:syms
:as
(let [{:keys [x y] :as the-point} point])
:or
Jay Fields has a nice page about it
Also, [official clojure.org page on it](http://clojure.org/special_forms#Special Forms--Binding Forms %28Destructuring%29)
Also, clojuredocs cool page on it
Related ki issue: https://github.com/lantiga/ki/issues/11 (Hi Luca!)
Namely:
(let [[a b c] [1 2 3]])
(let [{x :x y :y} {:x 1.71 :y 1.71}])
&
support, e.g.(let [[first & rest] long-ass-list])
\:keys
support, e.g.(let [{:keys [x y]} point])
,:strs
and:syms
support:as
support, e.g.(let [{:keys [x y] :as the-point} point])
:or
supportJay Fields has a nice page about it
Also, [official clojure.org page on it](http://clojure.org/special_forms#Special Forms--Binding Forms %28Destructuring%29)
Also, clojuredocs cool page on it
Related ki issue: https://github.com/lantiga/ki/issues/11 (Hi Luca!)