#() syntax can accept as many arguments as you like. For example, you can define partial using #():
(defn partial [f & args] #(apply f (concat args %&))) On May 16, 7:13 pm, greg r <gsra...@bellsouth.net> wrote: > The reader notation is limited to the arity of the number of arguments > provided. partial allows variable arity. > Check out pages 67-68 of "Clojure Programming". > > Regards, > Greg > > > > > > > > On Wednesday, May 16, 2012 1:57:40 PM UTC-4, Murtaza Husain wrote: > > > Hi, > > > What is the idiomatic use of partial. I understand it helps create > > closures, however the reader notation also allows to the same. So when > > should partial be use dover other forms of creating functions. > > > Thanks, > > Murtaza -- 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