rx/core/observablebase.py
def first(self, predicate=None) -> 'ObservableBase':
        """Returns the first element of an observable sequence that
        satisfies the condition in the predicate if present else the
        first item in the sequence.

        Example:
        res = res = source.first()
        res = res = source.first(lambda x: x > 3)

        Keyword arguments:
        predicate -- [Optional] A predicate function to evaluate for
            elements in the source sequence.

        Returns Observable sequence containing the first element in the
        observable sequence that satisfies the condition in the
        predicate if provided, else the first item in the sequence.
        """
        from ..operators.observable.first import first
        return first(self, predicate)
Returns the first element of an observable sequence that
        satisfies the condition in the predicate if present else the
        first item in the sequence.

        Example:
        res = res = source.first()
        res = res = source.first(lambda x: x > 3)

        Keyword arguments:
        predicate -- [Optional] A predicate function to evaluate for
            elements in the source sequence.

        Returns Observable sequence containing the first element in the
        observable sequence that satisfies the condition in the
        predicate if provided, else the first item in the sequence.
        
Returns the first element of an observable sequence that
satisfies the condition in the predicate if present else the
first item in the sequence.
Returns the first element of an observable sequence that satisfies the condition in the predicate if present else the first item in the sequence .
def first(self, predicate=None) -> 'ObservableBase':
        from ..operators.observable.first import first
        return first(self, predicate)
def first ( self , predicate = None ) -> 'ObservableBase' : from . . operators . observable . first import first return first ( self , predicate )
Returns the first element of an observable sequence that
satisfies the condition in the predicate if present else the
first item in the sequence.
Returns the first element of an observable sequence that satisfies the condition in the predicate if present else the first item in the sequence .
"""Returns the first element of an observable sequence that
        satisfies the condition in the predicate if present else the
        first item in the sequence.

        Example:
        res = res = source.first()
        res = res = source.first(lambda x: x > 3)

        Keyword arguments:
        predicate -- [Optional] A predicate function to evaluate for
            elements in the source sequence.

        Returns Observable sequence containing the first element in the
        observable sequence that satisfies the condition in the
        predicate if provided, else the first item in the sequence.
        """
self
predicate
examples
None