值参数不可见
// sum is NOT point-free...// nums parameter is showingconst sum = (nums) => nums.reduce((x, y) => x + y, 0);// sum is point-freeimport { add, reduce } from 'ramda';const sum = reduce(add, 0);// This is okay too,// but inner function (x, y) => {} isn't point-freeimport { reduce } from 'ramda';const sum = reduce((x, y) => x + y, 0);
