I don't understand this method

2010-08-28 Thread HB
of the collection but how vector is applied here? But I don't understand the previous method, would you please explain it to me. Thanks. -- 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

Re: I don't understand this method

2010-08-28 Thread Stephen C. Gilardi
/clojure.core-api.html#clojure.core/vector But I don't understand the previous method, would you please explain it to me. The function produces a lazy sequence of vectors of two items, the first an ordinal and the second a prime. --Steve -- You received this message because you are subscribed

Re: I don't understand this method

2010-08-28 Thread nickikt
P.S. something I should of have said: map can take 1 function and more then one collection. Calling the function with the number of arguments of collections provided -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: I don't understand this method

2010-08-28 Thread HB
this format: (map function collection) primes is the collection and (iterate inc 1) is the function to apply on each element of the collection but how vector is applied here? But I don't understand the previous method, would you please explain it to me. Thanks. -- You received

Re: I don't understand this method

2010-08-28 Thread gary ng
On Sat, Aug 28, 2010 at 8:37 AM, HB hubaghd...@gmail.com wrote: Ok, I understand what it does but I don't understand -yet- how it is works. Why vector and its parameters aren't in ( ) ? What are the parameters to the vector and what are the parameters to the map in the example? vector is