Re: Clojure function varargs (not Java interop varargs)

2010-02-19 Thread Julien
Thanks Timothy. That did the trick. One small comment below. On Feb 19, 12:11 am, Timothy Pratley wrote: > On 19 February 2010 18:04, Julien wrote: > > > > > Question #1 > > > I want to write a vararg function that does something like this: > > > (map vector [1 2 3] [4 5 6]) > > which yields > >

Re: Clojure function varargs (not Java interop varargs)

2010-02-18 Thread Timothy Pratley
On 19 February 2010 18:04, Julien wrote: > Question #1 > > I want to write a vararg function that does something like this: > > (map vector [1 2 3] [4 5 6]) > which yields > ([1 4] [2 5] [3 6]) > > I try to capture this as a function: > > (defn rotate[& x] (map vector x)) > > but > > (rotate [1 2