chunkedAndTransform<T> method

Iterable<T> chunkedAndTransform<T>(
  1. int size,
  2. T transform(
    1. Iterable<E> chunk
    )
)

Splits this collection into several iterables each not exceeding the given size and applies the given transform function to an each.

Implementation

Iterable<T> chunkedAndTransform<T>(
  int size,
  T Function(Iterable<E> chunk) transform,
) =>
    windowedAndTransform<T>(
      size: size,
      step: size,
      transform: transform,
      partialWindows: true,
    );