Combining infinite ranges

Philippe Sigaud philippe.sigaud at gmail.com
Tue Jun 1 14:20:52 PDT 2010


On Tue, Jun 1, 2010 at 23:12, Andrei Alexandrescu <
SeeWebsiteForEmail at erdani.org> wrote:

> On 06/01/2010 04:06 PM, Steven Schveighoffer wrote:
>
>> It looks like you're missing some iterations there.
>>
>> -Steve
>>
>
> There should be 5 * 3 = 15 iterations.
>
> Andrei
>

The example is:

 auto c = xproduct(iota(3), iota(5));

so the first index only goes from 0 to 2.


Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100601/19b3ae96/attachment-0001.html>


More information about the Digitalmars-d mailing list