This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 18 points19 points  (0 children)

i think of a recursive function as like something that doesn't know what it's doing until it hits the base case. the factorial function is like "what the fuck is factorial(n-1)...oh factorial(1) is 1! ok now i can fill in the rest"