Comment on Why does the for loop repeat in this recursion?

<- View Parent
supernicepojo@lemmy.world ⁨11⁩ ⁨months⁩ ago

This 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.

source
Sort:hotnewtop