On Tuesday, June 12, 2012 12:54:08 PM UTC+2, Chris Ford wrote:
>
> I guess the question should then be, should nth call seq on its argument?
>
This is horrible for performance. For a sequence, nth will run in O(n)
time, whereas it for any indexed data structure (vectors, strings,
arraylists, etc
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,
On Wednesday, August 8, 2012 6:48:23 PM UTC+2, Brian Marick wrote:
>
> ... show the mechanics, but I'm looking for examples that would resonate
> more with an object-oriented programmer. Such examples might be ones that
> close over a number of values (which looks more like an object), or
> gen