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
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to
clo...@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+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/clojure?hl=en