Min by

See also

  • Official ReactiveX documentation: MinBy
Observable.min_by(key_selector, comparer=None)

Returns the elements in an observable sequence with the minimum key value according to the specified comparer.

Example res = source.min_by(lambda x: x.value) res = source.min_by(lambda x: x.value, lambda x, y: x - y)

Keyword arguments: key_selector – {Function} Key selector function. comparer – {Function} [Optional] Comparer used to compare key values.

Returns an observable {Observable} sequence containing a list of zero or more elements that have a minimum key value.