DEV Community

Discussion on: F# for JS Devs

Collapse
 
charlesroddie profile image
Charles Roddie

"In F#, all functions are curried automatically". That's not right. F# equivalent should be let add(x,y) = x + y

Collapse
 
rametta profile image
Jason • Edited

That looks like a function that takes one tuple as an argument and destructures it, and since JS does not really have tuples - it does not seem equivalent to me.
Especially since in F# you can do let add(x,y)(z,a) = x + y + z + a

But correct me if I'm wrong.