What do you call a function that calls itself (is this called recursion)?

user858642 picture user858642 · Jul 26, 2011 · Viewed 24.1k times · Source

I am trying to figure out what you call a function that references itself. Is this termed recursion? Or is it simply a self-referencing function?

Answer

ssell picture ssell · Jul 26, 2011

It is a recursive function. Direct recursion is when a function calls itself.