doug-moen / openscad2

better abstraction mechanisms for OpenSCAD
Boost Software License 1.0
25 stars 3 forks source link

Curried Functions #10

Closed gwadej closed 9 years ago

gwadej commented 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".

gwadej commented 9 years ago

Okay. Digging a little further, it appears that what I've always seen as currying is actually "partial function application".