rx/core/observablebase.py
def element_at_or_default(self, index: int, default_value: Any = None) -> 'ObservableBase':
        """Returns the element at a specified index in a sequence or a
        default value if the index is out of range.

        Example:
        res = source.element_at_or_default(5)
        res = source.element_at_or_default(5, 0)

        Keyword arguments:
        index -- The zero-based index of the element to retrieve.
        default_value -- [Optional] The default value if the index is
            outside the bounds of the source sequence.

        Returns an observable sequence that produces the element at the
            specified position in the source sequence, or a default value if
            the index is outside the bounds of the source sequence.
        """
        from ..operators.observable.elementatordefault import element_at_or_default
        return element_at_or_default(self, index, default_value)
Returns the element at a specified index in a sequence or a
        default value if the index is out of range.

        Example:
        res = source.element_at_or_default(5)
        res = source.element_at_or_default(5, 0)

        Keyword arguments:
        index -- The zero-based index of the element to retrieve.
        default_value -- [Optional] The default value if the index is
            outside the bounds of the source sequence.

        Returns an observable sequence that produces the element at the
            specified position in the source sequence, or a default value if
            the index is outside the bounds of the source sequence.
        
Returns the element at a specified index in a sequence or a
default value if the index is out of range.
Returns the element at a specified index in a sequence or a default value if the index is out of range .
def element_at_or_default(self, index: int, default_value: Any = None) -> 'ObservableBase':
        from ..operators.observable.elementatordefault import element_at_or_default
        return element_at_or_default(self, index, default_value)
def element_at_or_default ( self , index : int , default_value : Any = None ) -> 'ObservableBase' : from . . operators . observable . elementatordefault import element_at_or_default return element_at_or_default ( self , index , default_value )
Returns the element at a specified index in a sequence or a
default value if the index is out of range.
Returns the element at a specified index in a sequence or a default value if the index is out of range .
"""Returns the element at a specified index in a sequence or a
        default value if the index is out of range.

        Example:
        res = source.element_at_or_default(5)
        res = source.element_at_or_default(5, 0)

        Keyword arguments:
        index -- The zero-based index of the element to retrieve.
        default_value -- [Optional] The default value if the index is
            outside the bounds of the source sequence.

        Returns an observable sequence that produces the element at the
            specified position in the source sequence, or a default value if
            the index is outside the bounds of the source sequence.
        """
self
index
int
default_value
Any
examples
None