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
> >
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
Dear Clojurists,
Two questions:
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 3] [4 5 6])
yields
([[1 2 3]]