import { MonoTypeOperatorFunction } from '../../interfaces'; import { IterableX } from '../../iterable/iterablex'; import { ExceptIterable } from '../except'; import { comparer as defaultComparer } from '../../internal/comparer'; export function except( second: Iterable, comparer: (x: TSource, y: TSource) => boolean = defaultComparer ): MonoTypeOperatorFunction { return function exceptOperatorFunction(first: Iterable): IterableX { return new ExceptIterable(first, second, comparer); }; }