in reply to Re^3: how can i hold temporary values in a recursive function
in thread how can i hold temporary values in a recursive function
You can pass a key-generator function to Memoize in case you need to normalize your parameters. Personally, I would add the "level" as another parameter and use plain Memoize.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: how can i hold temporary values in a recursive function
by LanX (Saint) on Apr 18, 2010 at 17:14 UTC |