Lensflare135711dJust google recursion.
Lensflare135711dBtw I remember the moment quite well when I first encountered recursion in some code and was completely mind blown.
"Wtf, why does the function call itself and why does it even work?"
Fun times 😅
billgates2180710dRecursion is the lazy way if creating for-for-for-... loops without needing multiple counters.
I used to do the latter all the time... Now I just look at a problem to make sure the use case won't lead to stack overflow.
I feel both dumber and smarter now....