sum property

num get sum

Sum of all elements (0 when empty).

Implementation

num get sum => fold(0, (a, b) => a + b);