DEV Community

loading...

Discussion on: Daily Challenge #123 - Curry me Softly

Collapse
peterbunting profile image
Peter Bunting

In F#:

let add x y = x + y
let add10 = add 10

// add10 is now a curried function
add10 1 // = 11
add10 50 // = 60
Collapse
citizen428 profile image
Michael Kohl

Since I know you’re learning F#: you don’t need to define the add function.

let add10 = (+) 10