good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Recursively-generated Iteratorsby Roy Johnson (Monsignor) |
on May 19, 2005 at 17:27 UTC ( [id://458697]=note: print w/replies, xml ) | Need Help?? |
It should be applicable to any algorithm that generates a set where different portions of the set are generated by different recursive calls. That's mostly combinatorial things like this, but Towers of Hanoi would also be a good example. If each item in the returned set required some value from more than one recursive call, you couldn't do it this way.
Caution: Contents may have been coded under pressure.
In Section
Meditations
|
|