const add = (x, y, z) => x + y + z;
const addPartial = (x) => (y) => (z) =>
add(x, y, z);
const sum = addPartial(5)(6)(7);
console.log(sum);
18
const add = (x, y, z) => x + y + z;
const addPartial = (x) => (y) => (z) =>
add(x, y, z);
const sum = addPartial(5)(6)(7);
console.log(sum);
18