WindowedList<E> extension

Exensions for list operations.

on

Methods

windowed(int windowSize) List<List<E>>
Groups the elements in the list into a list of lists, each of the same windowSize.
windowedWithStep(int size, int step, {bool partialWindows = false}) Iterable<Iterable<E>>
Groups the elements in the list into a list of lists, each of the same size, moving iterator by step.