Hi, When 'destructure' is doing a map destructuring, 'pmap' is the function to use. 'pmap' will do some kind of process to the given bindings using these lines of code: bes (reduce (fn [bes entry] (reduce #(assoc %1 %2 ((val entry) %2)) (dissoc bes (key entry)) ((key entry) bes))) (dissoc b :as :or) {:keys #(keyword (str %)), :strs str, :syms #(list `quote %)})
I'm confused. Since every time ((key entry) bes) evaluates to nil, the inner reduce will never really do some useful thing. What's the purpose of this piece of code? Thanks! -- 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