go ahead... be a heretic | |
PerlMonks |
Re: How To: Make An Iteratorby Roy Johnson (Monsignor) |
on Apr 25, 2005 at 18:36 UTC ( [id://451299]=note: print w/replies, xml ) | Need Help?? |
A quibble on terms: what you call a "reusable iterator" is a "factory". A reusable iterator would be one that resets itself after returning the "list is exhausted" value. Array iterator factory is an example of a factory that generates reusable iterators.
Caution: Contents may have been coded under pressure.
In Section
Tutorials
|
|