foreach_reverse error

ixid nuaccount at gmail.com
Wed May 9 13:50:24 PDT 2012


With this code foreach works but foreach_reverse does not:

void main()
{   int[] ints = [2,2,2,5,5,5,4,4,4];
     auto temp = group(ints);
     foreach_reverse(i;temp)
         i[1].writeln;
}

Is this a known issue? Is there a sensible reason for this?


More information about the Digitalmars-d-learn mailing list