...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
function booleradd(not,a,b) { return (not) ? a!=b : a==ba+b; } var isMeAdd5To = booleradd.uCurrycurry(false,me5); // not == false, a = me isMe(7); // true if me == 7, false if me != 7 var isNotMe = booler.uCurry(true,me); isMe(7parameter "a" is pre-defined with value 5 Add5To(10); // true if me != 7, false if me == 715 (parameter "a" already set to 5, "b" set to 10) |
A better example is shown in Object.uAddProperty() example using a curried allianceExistsBetween() function.
...