> Some range which takes an at compile time known number of elements from an
> input range and provides opIndex seems perfect to me, but as far as I know
> there's no such thing in Phobos.

There is chunks:

http://dlang.org/phobos/std_range.html#chunks

Reply via email to