4 ms·
How about both? Udon.flip = function(f) { return function(x) { if(arguments.length > 1) { return f(arguments[1])(x);
by walrus 14y ago
How about both?
Udon.flip = function(f) {
return function(x) {
if(arguments.length > 1) {
return f(arguments[1])(x);
}
return function(y) {
return f(y)(x);
};
};
};