sum¶
In std/collections.
reduction fn sum(self: Collection<Int>) : Int
reduction fn sum(self: Collection<Float>) : Float
reduction fn sum(self: Collection<Decimal>) : Decimal
The sum of the occurrences, reduce(0, +); [] | sum is 0.
sum¶In std/collections.
reduction fn sum(self: Collection<Int>) : Int
reduction fn sum(self: Collection<Float>) : Float
reduction fn sum(self: Collection<Decimal>) : Decimal
The sum of the occurrences, reduce(0, +); [] | sum is 0.