Traditional factorial (e.g. fact(x) = { 1 if x = 0 else x * fact(x-1) } ) isn't fully tail recursive, so no dice. (the x * return_value happens after the call to fact() ) You can rewrite it so it is tail recursive however.
Traditional factorial (e.g. fact(x) = { 1 if x = 0 else x * fact(x-1) } ) isn't fully tail recursive, so no dice. (the x * return_value happens after the call to fact() ) You can rewrite it so it is tail recursive however.
I was unsure of whether max loops supported was 2^8 or 2^16. Of course, you can emulate higher than 2^8 by using nested loops. Thus, the max PS3.0 limit is 2^8*2^8*2^8*2^8 = 2^32 = 4 billion iterations.