Keep It Simple, Stupid | |
PerlMonks |
Re^2: [Study]: Searching for square rootsby blazar (Canon) |
on Nov 15, 2006 at 10:01 UTC ( [id://584133]=note: print w/replies, xml ) | Need Help?? |
They are said to be "tail recursive". Your function is tail recursive, so it can be optimized. After removing tail recursion, your code looks like the following: Incidentally, one can fine a thorough discussion of these matters, and one likely to be particularly suited for the OP's (and everyone else's) learning purposes, in chapter 13 of the book that one of our monks is writing.
In Section
Seekers of Perl Wisdom
|
|