chunkedInPlace

fun <T> List<T>.chunkedInPlace(chunkSize: Int): ChunkedList<T>(source)

Splits this list into a list of InPlaceSubList each not exceeding the given chunkSize. The last list may have less elements than the given chunkSize.

Each chunk is a view into the original list. Changes in the original list will be reflected in the chunks.

Parameters

chunkSize

the number of elements to take in each window.