Re: problem with take-while

2011-07-27 Thread axyzxp
thanks guys, now everything is clearer to me. I really apreciate your help -- 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 from new members are moderated - please be patient

problem with take-while

2011-07-26 Thread axyzxp
Hi, experimenting with clojure API i had this: user=> (take-while #(= (mod 20 %) 0) (apply (fn [x y] (rest (range (max x y [10 20])) (1 2) but i expect to have (1 2 5 10) because of (apply (fn [x y] (rest (range (max x y [10 20]) returns (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) a