Compute the sum of a list of things.
ts.reduce((acc, t) => acc + map(t), 0) Copy
ts.reduce((acc, t) => acc + map(t), 0)
But also works with generators.
list of things
function to convert a thing to number
the total sum
Generated using TypeDoc
Compute the sum of a list of things.
But also works with generators.