Combining infinite ranges

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jun 1 14:27:21 PDT 2010


On 06/01/2010 04:20 PM, Philippe Sigaud wrote:
> On Tue, Jun 1, 2010 at 23:12, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org <mailto: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
>

And by the way, I added the feature that will ease bearophile's coding 
by one order of magnitude: iota with one argument.

Andrei


More information about the Digitalmars-d mailing list