Re: `(apply map vector ...)`, and passing `apply` a list vs. a vector

2015-03-18 Thread John Gabriele
Ah! I was passing `apply` a list who's first element was a symbol, rather than the function itself. Got it. Thanks Ambrose and Ben! On Wednesday, March 18, 2015 at 5:10:45 PM UTC-4, Ambrose Bonnaire-Sergeant wrote: > > [vector] is a vector with the vector predicate. > > '(vector) is a vector w

Re: `(apply map vector ...)`, and passing `apply` a list vs. a vector

2015-03-18 Thread Ambrose Bonnaire-Sergeant
[vector] is a vector with the vector predicate. '(vector) is a vector with the symbol 'vector. `(~vector) is similar to what [vector] gives you. On Wed, Mar 18, 2015 at 5:01 PM, John Gabriele wrote: > I see that you can pass extra args to `apply` --- between the func and the > coll args --- an

Re: `(apply map vector ...)`, and passing `apply` a list vs. a vector

2015-03-18 Thread Ben Wolfson
Because symbols can only take one argument: ('vector :a) ---> nil ('vector :a :i :x) ---> the exception you saw. On Wed, Mar 18, 2015 at 2:01 PM, John Gabriele wrote: > I see that you can pass extra args to `apply` --- between the func and the > coll args --- and `apply` will prepend the extras