Looking for an example of a typical tree-recursion turned into a tail-recursive form.
Posted
by Skeptic
on Stack Overflow
See other posts from Stack Overflow
or by Skeptic
Published on 2010-04-22T14:09:50Z
Indexed on
2010/04/22
14:13 UTC
Read the original article
Hit count: 242
Scheme
|tail-recursion
Anything like flatten, count-atoms, etc. over nested lists would do fine.
BTW, I'm not interested in a CPS transformation or "pairs-trees".
© Stack Overflow or respective owner