One line F# code is hard to understand
What is the meaning of this one line F# snippet
let x x = x + 2 in x 2;;
It is valid and just return 4.
But what is it?? is x a function? is it also a parameter? also x seems to
be calling itself (x 2) but its not marked with "rec".
Can anyone explain?
No comments:
Post a Comment