max
The Max operator operates on an Observable that emits numbers (or items that can be compared with a provided function), and when source Observable completes it emits a single item: the item with the largest value.
Parameters
comparer |
Optional. Default is Optional comparer function that it will use instead of its default to compare the value of two items. |
Returns
MonoTypeOperatorFunction<T>
: An Observable that emits item with the largest value.
Description
Examples
Get the maximal value of a series of numbers
Use a comparer function to get the maximal item