Recrusive function is cool, but it sometimes cause stack overflow in naive implementation. I'll explain how to write any recursive functions in stack safe way.
invokes thunk-returning functions ◦ https://en.wikipedia.org/wiki/Trampoline_(computing) #High-level_programming ◦ “Trampoline” in computer science has a lot of meanings. This is just one of them.