On Sat, Aug 7, 2010 at 6:39 PM, gary ng <garyng2...@gmail.com> wrote: > On Sat, Aug 7, 2010 at 6:35 PM, Michael Gardner <gardne...@gmail.com> wrote: >> (partition-by #(when (even? %) (gensym)) > nice, why do I need the gensym ?
ah, the gensym is for 'break'. but why does it behave like this user=> (partition-by #(when (even? %) (gensym)) [1 2 3 7 5 4 1] ) ((1) (2) (3 7 5) (4) (1)) -- 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 with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en