KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Are these functions exactly same? That is, are 1st and 2nd syntax just convenient shorthand for the last syntax? Or is there some theoretical or practical difference, and if so, what is it? let f1 a b = a + b let f2 a = (fun b -> a + b) let f3 = (fun a -> (fun b -> a + b) ) They seem the same to me, f1 5 , f2 5 and f3 5 seem to return identical value, for instance. Just checking I'm not making invalid assumption here. In other words, I hope a knowledge-based answer, not one saying "Yeah, I believe they are the same".
Tags (comma-separated)
Save Edits
Cancel