KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am not sure if this is a stupid question but I was going through the tutorial that comes with VS 2010 and there is a function like this: let rec factorial n = if n=0 then 1 else n * factorial (n-1) What's the reason of this recursive function to be marked with the rec keyword? Is it so that the compiler is assured of it being recursive so can do certain optimizations? What happens if you exclude it?
Tags (comma-separated)
Save Edits
Cancel