It emits the sum of all integers.
Input | Output |
---|---|
[1,2,-3,4]
|
4
|
[12,9,4]
|
25
|
It emits 0 for empty streams.
Input | Output |
---|---|
[]
|
0
|
It emits the sum of all floating point numbers.
Input | Output |
---|---|
[1.5,-3.5,2.5]
|
0.5
|