> user=> (macroexpand-1 '(let-coll [a b c] {:a 1 :b 2 :c 3} (println a b > c))) > (clojure.core/let [val-fn__23 {:a 1, :b 2, :c 3} > a (val-fn__23 :a) > b (val-fn__23 :b) > c (val-fn__23 :c)] > (println a b c)) > user=> (let-coll [a b c] {:a 1 :b 2 :c 3} (println a b c)) > 1 2 3 > > I actually like this idea. :)
That looks a lot like map destructuring, though: (let [{:keys [a b c]} {:a 1 :b 2 :c 3}] (list a b c)) -> (1 2 3) -- Jarkko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---