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