ary = [];
for (i = 0; i< 100; i++) {
ary.push(i)
}
function sum(x,y) {
return x+y
}
function nestedSum(x,y) {
return sum(x,y)
}
function nestedTwiceSum(x,y) {
return nestedSum(x,y)
}
ary.reduce((acc, x) => acc + x)
ary.reduce((acc, x) => sum(acc, x))
ary.reduce((acc, x) => nestedSum(acc, x))
ary.reduce((acc, x) => nestedTwiceSum(acc, x))
ary.reduce((acc, x) => ((x,y)=>(x+y))(acc, x))