Second parameter with ranges

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Apr 18 15:00:18 PDT 2009


dsimcha wrote:
> How do you do something like the following with ranges?
> 
> auto foo = someRange([1U, 2, 3, 4, 5]);
> foreach(index, elem; foo) {
>    writeln(index, "  ", elem);
> }
> 
> Has this been addressed yet?

No :o(.

Andrei



More information about the Digitalmars-d mailing list