I can't find the documentation for this behaviour:
(let [{x :b :as y} '(:a 1 :b 2)] [x y])
;= [2 {:a 1, :b 2}]
It seems as if the list in the init-expr is converted first to an
associative structure and then destructured.
But that behaviour doesn't seems to be documented, the map destructuring
On Tue, Sep 25, 2012 at 5:10 AM, Nahuel Greco ngr...@gmail.com wrote:
I can't find the documentation for this behaviour:
(let [{x :b :as y} '(:a 1 :b 2)] [x y])
;= [2 {:a 1, :b 2}]
It seems as if the list in the init-expr is converted first to an
associative structure and then