<s> from rx import Observable <EOL> from rx . internal . basic import identity <EOL> from rx . internal import extensionmethod <EOL> from . min import first_only <EOL> @ extensionmethod ( Observable ) <EOL> def max ( self , comparer = None ) : <EOL> """<STR_LIT>""" <EOL> return self . max_by ( identity , comparer ) . map ( lambda x : first_only ( x ) ) </s>
