@szilanor/stream
    Preparing search index...

    Function pairwiseAsync

    • Returns an AsyncOperationFunction that yields the current and the previous entry of the source Iterable.

      Type Parameters

      • T

        The type of the elements in the source Iterable.

      Returns AsyncOperationFunction<T, [T, T]>

      An AsyncOperationFunction that yields the current and the previous entry of the source Iterable.

      const result = pairwiseAsync<number>([1, 2, 3]);
      console.log(result); // [[1, 2], [2, 3]]