Remix.run Logo
vincnetas a year ago

all iterations are recursion but not the other way around.

cryptonector a year ago | parent [-]

When you add an explicit stack to help you keep state then you can have recursion be the same as iteration. Normally the stack you get in recursion is implicit rather than explicit.

eru a year ago | parent [-]

A stack is one way to implement a specific kind of recursion on a computer.

But see https://news.ycombinator.com/item?id=42234121 for other examples of recursion.