UNPKG

@reactivex/ix-es5-esm

Version:

The Interactive Extensions for JavaScript

17 lines (16 loc) 748 B
import { IterableX } from '../iterablex.js'; import { OperatorFunction } from '../../interfaces.js'; /** @ignore */ export declare class PairwiseIterable<TSource> extends IterableX<TSource[]> { private _source; constructor(source: Iterable<TSource>); [Symbol.iterator](): Generator<TSource[], void, unknown>; } /** * Returns a sequence of each element in the input sequence and its predecessor, with the exception of the * first element which is only returned as the predecessor of the second element. * * @template TSource The type of the elements in the source sequence. * @returns {OperatorFunction<TSource, TSource[]>} The result sequence. */ export declare function pairwise<TSource>(): OperatorFunction<TSource, TSource[]>;