zipWithNextAndTransform<R> method

Iterable<R> zipWithNextAndTransform<R>(
  1. R transform(
    1. Pair<E, E> pair
    )
)

Returns a Iterable containing the results of applying the given transform function to an each Pair of two adjacent elements in this collection.

Implementation

Iterable<R> zipWithNextAndTransform<R>(
  R Function(Pair<E, E> pair) transform,
) =>
    zipWithNext.map(transform);