On Sunday, June 24, 2012 12:30:48 PM UTC+2, Vinzent wrote: > > I think versions with `for` is a hell more readable. > I vote for this: > > (def cc > (for [i (range 256)] > (.GetColor ctf (/ i 255.0)))) >
Yeah, that's about as succinct as it gets. Just be aware that the list is immutable, so e.g. (cons cc (.GetColor ctf 0.9)) will not change cc. -- 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
