Re: Question on mapcat and its variable arity

2013-08-25 Thread John Mastro
On Aug 25, 2013, at 2:43 PM, ngieschen wrote: > I'm somewhat new to clojure and trying to understand mapcat, so apologies in > advance if this is an embarrassingly elementary question. > > mapcat's signature is (f & colls) which indicates to me I should be able to > so something like (mapcat #(

Re: Question on mapcat and its variable arity

2013-08-25 Thread ngieschen
Ahh, of course. Ouch, that was embarrassingly elementary. Thanks. On Sunday, August 25, 2013 3:13:12 PM UTC-7, Lee wrote: > > > On Aug 25, 2013, at 5:42 PM, ngieschen wrote: > > > > mapcat's signature is (f & colls) which indicates to me I should be able > to so something like (mapcat #(list (i

Re: Question on mapcat and its variable arity

2013-08-25 Thread Lee Spector
On Aug 25, 2013, at 5:42 PM, ngieschen wrote: > > mapcat's signature is (f & colls) which indicates to me I should be able to > so something like (mapcat #(list (inc %)) [1 2 3] [4 5 6]). That is, doesn't > the & indicate that I can pass in a variable number of colls? However, if I > do, it cr

Question on mapcat and its variable arity

2013-08-25 Thread ngieschen
I'm somewhat new to clojure and trying to understand mapcat, so apologies in advance if this is an embarrassingly elementary question. mapcat's signature is (f & colls) which indicates to me I should be able to so something like (mapcat #(list (inc %)) [1 2 3] [4 5 6]). That is, doesn't the & i