Yes, I thought that technique worked, but I just conducted the same experiment as you did and confirmed that it doesn't. I must have been misremembering. You are correct that passing a map to a keyword-arg function is more of a nuisance than it should be.
On Mon, Mar 23, 2015 at 4:36 PM, Matching Socks <phill.w...@gmail.com> wrote: > Could you give an example demonstrating this? > > user> (defn a [& {x :x y :y}] (vector x y)) > #'user/a > > user> (a :y 7 :x 3) > [3 7] > > user> (apply a {:x 3 :y 7}) > [nil nil] > > > > On Monday, March 23, 2015 at 6:13:55 AM UTC-4, puzzler wrote: >> >> It's been a while since I've tested this, but I believe that if a map is >> passed as the last argument to apply, Clojure "does the right thing" and >> passes the map in as keyword args. >> >> -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.