WindowedList<E> extension
Exensions for list operations.
- on
-
- List<
E>
- List<
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 bystep
.