Iterators for D

rm roel.mathys at gmail.com
Mon Nov 6 13:22:09 PST 2006


> I think the Java style may be more appropriate:
> 
>     foreach( e; s.fwdIter() )
>     foreach( e; s.revIter() )
> 

I didn't read the discussion, but wasn't there a topic about 
foreach_reverse? Should that not cover s.revIter()?

Secondly, why must one give in the foreach statement the first iterator?
I'd say that there the iterable must be given?

roel



More information about the Digitalmars-d mailing list