rx/core/observablebase.py
def scan(self, accumulator: Accumulator, seed: Any = None) -> 'ObservableBase':
        """Applies an accumulator function over an observable sequence
        and returns each intermediate result. The optional seed value is
        used as the initial accumulator value. For aggregation behavior
        with no intermediate results, see Observable.aggregate.

        Examples:
            >>> scanned = source.scan(lambda acc, x: acc + x)
            >>> scanned = source.scan(lambda acc, x: acc + x, 0)

        Args:
            accumulator: An accumulator function to be invoked on each
                element.
            seed: The initial accumulator value.

        Returns:
            An observable sequence containing the accumulated values.
        """
        from ..operators.observable.scan import scan
        return scan(self, accumulator, seed)
Applies an accumulator function over an observable sequence
        and returns each intermediate result. The optional seed value is
        used as the initial accumulator value. For aggregation behavior
        with no intermediate results, see Observable.aggregate.

        Examples:
            >>> scanned = source.scan(lambda acc, x: acc + x)
            >>> scanned = source.scan(lambda acc, x: acc + x, 0)

        Args:
            accumulator: An accumulator function to be invoked on each
                element.
            seed: The initial accumulator value.

        Returns:
            An observable sequence containing the accumulated values.
        
Applies an accumulator function over an observable sequence
and returns each intermediate result. The optional seed value is
used as the initial accumulator value. For aggregation behavior
with no intermediate results, see Observable.aggregate.
Applies an accumulator function over an observable sequence and returns each intermediate result . The optional seed value is used as the initial accumulator value . For aggregation behavior with no intermediate results see Observable . aggregate .
def scan(self, accumulator: Accumulator, seed: Any = None) -> 'ObservableBase':
        from ..operators.observable.scan import scan
        return scan(self, accumulator, seed)
def scan ( self , accumulator : Accumulator , seed : Any = None ) -> 'ObservableBase' : from . . operators . observable . scan import scan return scan ( self , accumulator , seed )
Applies an accumulator function over an observable sequence
and returns each intermediate result.
Applies an accumulator function over an observable sequence and returns each intermediate result .
"""Applies an accumulator function over an observable sequence
        and returns each intermediate result. The optional seed value is
        used as the initial accumulator value. For aggregation behavior
        with no intermediate results, see Observable.aggregate.

        Examples:
            >>> scanned = source.scan(lambda acc, x: acc + x)
            >>> scanned = source.scan(lambda acc, x: acc + x, 0)

        Args:
            accumulator: An accumulator function to be invoked on each
                element.
            seed: The initial accumulator value.

        Returns:
            An observable sequence containing the accumulated values.
        """
An observable sequence containing the accumulated values.
An observable sequence containing the accumulated values .
self
accumulator
Accumulator
An accumulator function to be invoked on each
element.
An accumulator function to be invoked on each element .
seed
Any
The initial accumulator value.
The initial accumulator value .
examples
>>> scanned = source.scan(lambda acc, x: acc + x)
>>> scanned = source.scan(lambda acc, x: acc + x, 0)
>>> scanned = source . scan ( lambda acc x : acc + x ) >>> scanned = source . scan ( lambda acc x : acc + x 0 )