(def baz (partial merge {:opt1 "default-1" :opt2 "default-2"}))
:) On Thu, May 12, 2016 at 5:08 PM, hiskennyness <kentil...@gmail.com> wrote: > > > On Thursday, May 12, 2016 at 9:33:29 AM UTC-4, Michael Willis wrote: >> >> As long as we're cutting out unnecessary code, this is also equivalent: >> >> (defn baz [options] >> (merge {:opt1 "default-1" :opt2 "default-2"} options)) >> >> > Heh-heh, I was going to point that out. And now baz is a crippled form of > merge. > > Good examples are tough! > > > -- > 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.