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

<- View Parent
milon@lemm.ee ⁨9⁩ ⁨months⁩ ago

Why does the for loop return when it hits the end of the function? Isn’t the recursive portion already completed in draw(n - 1)? The rest of it is just normal non-recursive code if I understand it correctly.

source
Sort:hotnewtop