import type { Predicate2 } from "@thi.ng/api"; import type { Transducer } from "./api.js"; /** * Transducer. Deduplicates **consecutive** values which are equal according to * given (optional) predicate (default: `===`). * * @remarks * See {@link distinct} to remove **any** duplicates. * * @example * ```ts tangle:../export/dedupe.ts * import { dedupe } from "@thi.ng/transducers"; * * console.log( * [...dedupe([1, 1, 2, 3, 3, 3, 1])] * ); * // [ 1, 2, 3, 1 ] * ``` * * @param equiv */ export declare function dedupe(equiv?: Predicate2): Transducer; export declare function dedupe(src: Iterable): IterableIterator; export declare function dedupe(equiv: Predicate2, src: Iterable): IterableIterator; //# sourceMappingURL=dedupe.d.ts.map