some compilers can rearrange it to be tail recursive automatically
fib(0) -> 1;
fib(1) -> 1;
fib(N) -> fib(N-1) + fib(N-2).
Rules: Making a second function (fib_help) is permitted. Shouldn't use any more memory than this one uses.https://paste.pound-python.org/show/m403qNkpS5I8dnYjJGJq/
I wanna see the compiler that gets that.
But I suppose it's more accurate to describe it as the poster boy example for changing an implementation to make it tail recurse.