Tagged: recursion

AS3: Recursive Functions vs Loop Functions 1

AS3: Recursive Functions vs Loop Functions

A recursive function is a function that calls itself. The following code shows a simple example of recursion. function trouble(){ trouble(); } A recursive function like above calls itself unconditionally, cause infinite recursion. To...