I guess you want to write: (defn foo [& v] (apply + v))
(note the space between & and v) --> no clojure here... it's English... :-) If you write &v (without space) it's just another identifier &v. Angel "Java" Lopez http://www.ajlopez.com http://twitter.com/ajlopez On Sun, Aug 30, 2009 at 10:09 AM, Emeka <emekami...@gmail.com> wrote: > Hello All, > > I was fooling around with clojure and I found something I have not noticed > before. Could someone explain it ? > > (defn foo [ &v] > (apply + &v)) > > Is '&' + the identifier's name another where of making sure that the > parameter must be a collection? > Or is there something I am doing wrong here? To be honest, I am pretty > tired. > Happy Sunday! > > Regards, > Emeka > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---