Jump to content

Talk:F Sharp Programming/Recursion

Page contents not supported in other languages.
Add topic
From Wikibooks, open books for an open world
Latest comment: 9 years ago by Kwhitefoot

Why is the first version of slowMultiply not tail recursive? Samal84 (discusscontribs) 11:44, 11 February 2012 (UTC)Reply

I did some reading up and added an explanation myself. Samal84 (discusscontribs) 12:25, 11 February 2012 (UTC)Reply


Why does everyone implement factorial functions in a way that allows the caller to provide invalid input? The function given on this page will return one for all negative numbers which is wrong because factorial is undefined for negative numbers, at least if using the obvious definition of factorial. kwhitefoot (discusscontribs) 11:05, 21 November 2016 (UTC)Reply