Ah, thanks. No, I was wondering whether it was possible to iterate over something created in a :let
This works: (for [x (range 10) :let [ys (range 10)] y ys] [x y]) On Wednesday, September 5, 2012 10:11:08 PM UTC-7, Sean Corfield wrote: > > On Wed, Sep 5, 2012 at 9:51 PM, yongqli <yon...@gmail.com <javascript:>> > wrote: > > This code doesn't work: > > > > (for [:let [x (range 100)] > > y x] > > [y]) > > My understanding is that :let is a modifier that must follow a > binding. Did you mean: > > (for [x (range 100) > :let [y x]] > [y]) > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > World Singles, LLC. -- http://worldsingles.com/ > > "Perfection is the enemy of the good." > -- Gustave Flaubert, French realist novelist (1821-1880) > -- 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