Or, to defeat the purpose of iterate entirely: (= (repeat 100 :foo) (take 100 (iterate (constantly :foo) :foo)))
On Jul 4, 3:51 am, Christophe Grand <[email protected]> wrote: > => (= (repeat 100 :foo) > (take 100 (iterate identity :foo))) > true > > hth, > > Christophe > > > > > > > > > > On Mon, Jul 4, 2011 at 12:39 PM, Antonio Recio <[email protected]> wrote: > > Do you know how to solve this? > > > (= (repeat 100 :foo) > > (take 100 (iterate ___ :foo))) > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to [email protected] > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/clojure?hl=en > > -- > Professional:http://cgrand.net/(fr) > On Clojure:http://clj-me.cgrand.net/(en) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
