in reply to Re^3: Designing a DWIMish interface for generator function
in thread Designing a DWIMish interface for generator function

Many languages have range(), e.g. Python. Perl has a range operator ".." doing this in list context.

My knowledge of PHP is quite reduced, so I can't possibly mix it in.

Anyway range() was only meant as an example.

I want to use the same function as iterator/generator in different contexts.

Whats not clear about the 3 usage examples I gave?

Cheers Rolf