rx/core/observablebase.py
def distinct(self, key_mapper=None, comparer=None) -> 'ObservableBase':
        """Returns an observable sequence that contains only distinct
        elements according to the key_mapper and the comparer. Usage
        of this operator should be considered carefully due to the
        maintenance of an internal lookup structure which can grow
        large.

        Examples:
            >>> res = obs = xs.distinct()
            >>> obs = xs.distinct(lambda x: x.id)
            >>> obs = xs.distinct(lambda x: x.id, lambda a,b: a == b)

        Args:
            key_mapper: A function to compute the comparison key for
                each element.
            comparer: Used to compare items in the collection.

        Returns:
            An observable sequence only containing the distinct
            elements, based on a computed key value, from the source
            sequence.
        """
        from ..operators.observable.distinct import distinct
        return distinct(self, key_mapper, comparer)
Returns an observable sequence that contains only distinct
        elements according to the key_mapper and the comparer. Usage
        of this operator should be considered carefully due to the
        maintenance of an internal lookup structure which can grow
        large.

        Examples:
            >>> res = obs = xs.distinct()
            >>> obs = xs.distinct(lambda x: x.id)
            >>> obs = xs.distinct(lambda x: x.id, lambda a,b: a == b)

        Args:
            key_mapper: A function to compute the comparison key for
                each element.
            comparer: Used to compare items in the collection.

        Returns:
            An observable sequence only containing the distinct
            elements, based on a computed key value, from the source
            sequence.
        
Returns an observable sequence that contains only distinct
elements according to the key_mapper and the comparer. Usage
of this operator should be considered carefully due to the
maintenance of an internal lookup structure which can grow
large.
Returns an observable sequence that contains only distinct elements according to the key_mapper and the comparer . Usage of this operator should be considered carefully due to the maintenance of an internal lookup structure which can grow large .
def distinct(self, key_mapper=None, comparer=None) -> 'ObservableBase':
        from ..operators.observable.distinct import distinct
        return distinct(self, key_mapper, comparer)
def distinct ( self , key_mapper = None , comparer = None ) -> 'ObservableBase' : from . . operators . observable . distinct import distinct return distinct ( self , key_mapper , comparer )
Returns an observable sequence that contains only distinct
elements according to the key_mapper and the comparer.
Returns an observable sequence that contains only distinct elements according to the key_mapper and the comparer .
"""Returns an observable sequence that contains only distinct
        elements according to the key_mapper and the comparer. Usage
        of this operator should be considered carefully due to the
        maintenance of an internal lookup structure which can grow
        large.

        Examples:
            >>> res = obs = xs.distinct()
            >>> obs = xs.distinct(lambda x: x.id)
            >>> obs = xs.distinct(lambda x: x.id, lambda a,b: a == b)

        Args:
            key_mapper: A function to compute the comparison key for
                each element.
            comparer: Used to compare items in the collection.

        Returns:
            An observable sequence only containing the distinct
            elements, based on a computed key value, from the source
            sequence.
        """
An observable sequence only containing the distinct
elements, based on a computed key value, from the source
sequence.
An observable sequence only containing the distinct elements based on a computed key value from the source sequence .
self
key_mapper
A function to compute the comparison key for
each element.
A function to compute the comparison key for each element .
comparer
Used to compare items in the collection.
Used to compare items in the collection .
examples
>>> res = obs = xs.distinct()
>>> obs = xs.distinct(lambda x: x.id)
>>> obs = xs.distinct(lambda x: x.id, lambda a,b: a == b)
>>> res = obs = xs . distinct () >>> obs = xs . distinct ( lambda x : x . id ) >>> obs = xs . distinct ( lambda x : x . id lambda a b : a == b )