I like that a lot, Stuart, thanks! Named params are a bonus, too: Before I wasn't sure which was on top: (overlay x y pred) Now it's more clear: (overlay :on x :with y :using pred)
Thanks again! Jim On Sat, Dec 3, 2011 at 1:03 PM, Stuart Sierra <the.stuart.sie...@gmail.com>wrote: > Map destructuring can help here: > > (defn foo [{:keys [one two] :as args}] > (bar args)) > > (defn bar [{:keys [three]}} > ...) > > (foo {:one 1 :two 2 :three 3}) > > -S > > -- > 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 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