in reply to Re^3: Derangements iterator (callbacks)
in thread Derangements iterator
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Derangements iterator (callbacks)
by Roy Johnson (Monsignor) on Dec 30, 2005 at 18:22 UTC | |
by tye (Sage) on Dec 30, 2005 at 19:11 UTC | |
by Roy Johnson (Monsignor) on Jan 01, 2006 at 15:21 UTC |