DM
Size: a a a
DM
AK
c.length > d.length + b.length
AC
В
.
В
c.length > d.length + b.length
a
В
DM
AC
AK
DM
В
a
DM
DM
В
function curry() {
let args = toArray(arguments);
let fn = args[0];
let tail = args.slice(1);
return function () {
let args2 = toArray(arguments);
return fn.length > args2.length + tail.length
? curry.apply(undefined, concat([fn], tail, args2))
: fn.apply(undefined, concat(tail, args2))
}
}
В
DM
AC