You can try using the multi-input version of map to knit your data together with some other, potentially infinite, sequence:
(map vector items (cycle [black white])) It returns something like this: ([item1 black] [item2 white] [item3 black] [item4 white]) Then you can use doseq over that, using destructuring to pick apart the items and colours and do something appropriate with each of them. -- Dave On Thu, Aug 9, 2012 at 11:53 AM, Jim - FooBar(); <jimpil1...@gmail.com> wrote: > On 09/08/12 11:23, Jim - FooBar(); wrote: >> >> aaa ok sorry...you mean having it as doseq binding...that makes sense! I >> apologise for rushing... >> >> Jim > > > > No I can't put 'cycle' inside a doseq cos its trying to consume it! > > > Jim > > -- > 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 -- 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