jcupp has asked for the wisdom of the Perl Monks concerning the following question:
1. traditional procedural: for loops 2. OO: while ($item = $collection->next)... 3. Stack: while (shift @collection)... 4. That Ruby thing with 'yield' (passing a closure) 5. returning a closure which acts as a next: while ($fetch->() ) 6. can't think of a six...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Iterator for multidimensional arrays
by merlyn (Sage) on Mar 24, 2002 at 13:35 UTC | |
|
Re: Iterator for multidimensional arrays
by Masem (Monsignor) on Mar 24, 2002 at 13:35 UTC | |
|
Re: Iterator for multidimensional arrays
by rinceWind (Monsignor) on Mar 24, 2002 at 10:44 UTC | |
|
Re: Iterator for multidimensional arrays
by shotgunefx (Parson) on Mar 24, 2002 at 09:19 UTC | |
by jcupp (Acolyte) on Mar 24, 2002 at 10:14 UTC | |
by shotgunefx (Parson) on Mar 24, 2002 at 20:43 UTC | |
by jcupp (Acolyte) on Mar 25, 2002 at 03:21 UTC | |
by shotgunefx (Parson) on Mar 25, 2002 at 03:24 UTC | |
|