Comment on Why does the for loop repeat in this recursion?
supernicepojo@lemmy.world 11 months agoThis is all a really great example of how The Stack works. As the loop recurses it continually adds to the program stack in memory and then plays the next “item” in the stack. There is a specific limit to recursion as well based on this principle.