Rx\Operator\DistinctOperator::__construct PHP Method

__construct() public method

public __construct ( callable $keySelector = null, callable $comparer = null )
$keySelector callable
$comparer callable
    public function __construct(callable $keySelector = null, callable $comparer = null)
    {
        $this->comparer = $comparer ?: function ($x, $y) {
            return $x == $y;
        };
        $this->keySelector = $keySelector;
    }
DistinctOperator