Closed gwadej closed 9 years ago
The description here is not the way I've normally used currying (or seen it used). Is this what you mean?
add(x,y) = x + y; inc(x) = add(1,x);
"inc" is a curried version of "add".
Okay. Digging a little further, it appears that what I've always seen as currying is actually "partial function application".
The description here is not the way I've normally used currying (or seen it used). Is this what you mean?
add(x,y) = x + y; inc(x) = add(1,x);
"inc" is a curried version of "add".