[REBOL] Re: Tail end recursion
From: maarten:vrijheid at: 9-Oct-2003 15:13
Max, See the sample F: func [x][x: x + 1 print x f x] Tail recursive is calling yourself as the last thing you do in a function. This will normally blow up the stack. But... you can eliminate this by replacing a call to yourself by saving the parameters, throwing the current stack frame away, and then execute again. --Maarten