|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^4: Derangements iterator (callbacks)by tye (Cardinal) |
| on Dec 29, 2005 at 19:56 UTC ( #519853=note: print w/ replies, xml ) | Need Help?? |
|
I didn't have to rewrite my iterator, just use it. I believe you are pointing out ways to make it easier to rewrite a naive recursive solution so that it can be re-implemented as an iterator instead. By "Try to go the other way" I meant (at least in part), try to use jdporter's callback interface (as-is) in a situation where an iterator is needed. Though, I don't even understand what you linked to yet so I still consider what I did to go from iterator to callback to be "trivial" compared to what you are proposing as "not too difficult". (: - tye
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||||||