One can easily imagine where using recursion on a very large data structure would use up a lot of memory.
No, I can't. How deep is your structure? 10 levels? Even if it was 100 levels deep, that's very little memory.
In reply to Re: Iteratively deep copying a data structure
by ikegami
in thread Iteratively deep copying a data structure
by telcontar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |