On Fri, 06 Aug 2010 13:33:09 -0400, Philippe Sigaud <philippe.sig...@gmail.com> wrote:

Here is what I cooked, it's still a bit rough around the edges. It has an
optional step argument, to see how many elements to jump.

[snip]

    ElementType!R[] front() @property { return array(take(range, n));} //

I'd change this to just return take(range, n). Rule #1 in writing efficient D code, avoid the heap when you can :)

-Steve

Reply via email to