Share your code. Components are building blocks, you are the architect.

utils/sum
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Adds together all the elements of a list.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/sum in your project
npm i @bit/bit.ramda.utils.sum
Copied

sum (list:Array) : Number

Adds together all the elements of a list.

Example

R.sum([2,4,6,8,100,1]); //=> 121

Argument

list: Array

An array of numbers

Returns

Number

The sum of all the numbers in the list.