U
vâ’i• ã @ s® d dl mZmZmZmZmZ d dlmZmZ d dlm Z
d dlmZ d dl
mZ d dlmZ edƒZee edœd d
„Zdeee eee gee f dœd
d„ZdgZdS )é )ÚCallableÚListÚOptionalÚTypeVarÚcast)Ú
ObservableÚcompose)Ú operators)Úidentity©ÚSequenceContainsNoElementsError)ÚComparerÚ_T)ÚxÚreturnc C s | s
t ƒ ‚| d S )Nr r )r © r úI/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_min.pyÚ
first_only s r N)Úcomparerr c C s( t t tttgtf tƒ| ¡t t¡ƒS )aß The `min` operator.
Returns the minimum element in an observable sequence according to
the optional comparer else a default greater than less than check.
Examples:
>>> res = source.min()
>>> res = source.min(lambda x, y: x.value - y.value)
Args:
comparer: [Optional] Comparer used to compare elements.
Returns:
An observable sequence containing a single element
with the minimum element in the source sequence.
) r ÚopsZmin_byr r r r
Úmapr )r r r r Úmin_ s þr )N)Útypingr r r r r Z reactivexr r r r Zreactivex.internal.basicr
Zreactivex.internal.exceptionsr Zreactivex.typingr
r r r Ú__all__r r r r Ú