-
Notifications
You must be signed in to change notification settings - Fork 8
Aggregates
Luis Llamas edited this page Apr 25, 2019
·
8 revisions
Aggregates operators are Hot observers, they emit as soon as a new item is received.
If you want to apply to the whole sequence, consider combine with Last()
operator.
Count the number of items recieved
Count()
Countdown the number of items recieved, and call a callback function when arrive 0
Count()
Emits items recieved sum
Sum()
Emits the minimum-valued item
Min()
Emits the maximum-valued item
Max()
Emits the average of recieved items
Average()
Emits the root mean square of recieved items
Average()
Emits true if any of the received items satisfy a condition
Any(ReactiveCondition<T> condition)
Emits true if all of the received items satisfy a condition
All(ReactiveCondition<T> condition)
Emits true if none of the received items satisfy a condition
None(ReactiveCondition<T> condition)