On Jun 25, 2:57 am, Chas Emerick <[email protected]> wrote: > This is fairly simple: > > user=> (defn foo [& {:as args}] [args]) > #'user/foo > user=> (def m {:a 5 :b 6}) > #'user/m > user=> (apply foo (-> m seq flatten)) > [{:a 5, :b 6}] > > I'm not sure if it could be made easier, short of changing apply > (which I wouldn't think is reasonable). > > - Chas
That was what I tried first, but it doesn't work. It flattens too much. Note that I have a vector as one of the map values in my example. --Brian -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
