We're a place where coders share, stay up-to-date and grow their careers.
In F#:
let add x y = x + y let add10 = add 10 // add10 is now a curried function add10 1 // = 11 add10 50 // = 60
Since I know you’re learning F#: you don’t need to define the add function.
add
let add10 = (+) 10
In F#:
Since I know you’re learning F#: you don’t need to define the
add
function.