How to easily construct objects with multi-param constructors from lazy ranges?

Philippe Sigaud via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 5 12:21:35 PDT 2014


> 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


More information about the Digitalmars-d-learn mailing list