WindowedList<E> extension
Exensions for list operations.
- on
-
- List<
E>
- List<
Methods
-
windowed(
int windowSize) → List< List< E> > -
Available on List<
Groups the elements in the list into a list of lists, each of the sameE> , provided by the WindowedList extensionwindowSize
. -
windowedWithStep(
int size, int step, {bool partialWindows = false}) → Iterable< Iterable< E> > -
Available on List<
Groups the elements in the list into a list of lists, each of the sameE> , provided by the WindowedList extensionsize
, moving iterator bystep
.