Package-level declarations

Types

Link copied to clipboard

A sublist view of a sourceList that provides access to a portion of the list within the specified range (start, end). Modifications to the original list are reflected in the sublist.

Link copied to clipboard

A sublist view of a sourceList that provides access to a portion of the list within the specified range (start, end). Modifications to the original list are reflected in the sublist.

Link copied to clipboard

A sublist view of a sourceList that provides access to a portion of the list within the specified range (start, end). Modifications to the original list are reflected in the sublist.

Link copied to clipboard

A sublist view of a sourceList that provides access to a portion of the list within the specified range (start, end). Modifications to the original list are reflected in the sublist.

Link copied to clipboard
class WindowedDoubleList(sourceList: DoubleList, windowSize: Int, stepSize: Int = 1, partialWindows: Boolean = false) : AbstractList<InPlaceDoubleSubList>

Represents a list of windows as a list of InPlaceDoubleSubList created from a source DoubleList. Each window is a view into the original list. Changes in the original list will be reflected in the windows.

Link copied to clipboard
class WindowedFloatList(sourceList: FloatList, windowSize: Int, stepSize: Int = 1, partialWindows: Boolean = false) : AbstractList<InPlaceFloatSubList>

Represents a list of windows as a list of InPlaceFloatSubList created from a source FloatList. Each window is a view into the original list. Changes in the original list will be reflected in the windows.

Link copied to clipboard
class WindowedIntList(sourceList: IntList, windowSize: Int, stepSize: Int = 1, partialWindows: Boolean = false) : AbstractList<InPlaceIntSubList>

Represents a list of windows as a list of InPlaceIntSubList created from a source IntList. Each window is a view into the original list. Changes in the original list will be reflected in the windows.

Link copied to clipboard
class WindowedLongList(sourceList: LongList, windowSize: Int, stepSize: Int = 1, partialWindows: Boolean = false) : AbstractList<InPlaceLongSubList>

Represents a list of windows as a list of InPlaceLongSubList created from a source LongList. Each window is a view into the original list. Changes in the original list will be reflected in the windows.

Functions

Link copied to clipboard

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

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

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

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

Link copied to clipboard
inline fun DoubleList.forEachChunk(chunkSize: Int, action: (InPlaceDoubleSubList) -> Unit)
inline fun FloatList.forEachChunk(chunkSize: Int, action: (InPlaceFloatSubList) -> Unit)
inline fun IntList.forEachChunk(chunkSize: Int, action: (InPlaceIntSubList) -> Unit)
inline fun LongList.forEachChunk(chunkSize: Int, action: (InPlaceLongSubList) -> Unit)

Iterates through the windowed chunks of this collection with given chunkSize, where window step is equals to chunkSize and calls action on each chunk.

Link copied to clipboard
inline fun DoubleList.forEachChunkIndexed(chunkSize: Int, action: (index: Int, InPlaceDoubleSubList) -> Unit)
inline fun FloatList.forEachChunkIndexed(chunkSize: Int, action: (index: Int, InPlaceFloatSubList) -> Unit)
inline fun IntList.forEachChunkIndexed(chunkSize: Int, action: (index: Int, InPlaceIntSubList) -> Unit)
inline fun LongList.forEachChunkIndexed(chunkSize: Int, action: (index: Int, InPlaceLongSubList) -> Unit)

Iterates through the windowed chunks of this collection with given chunkSize, where window step is equals to chunkSize and calls action on each chunk with its index.

Link copied to clipboard
inline fun DoubleList.forEachWindow(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (InPlaceDoubleSubList) -> Unit)
inline fun FloatList.forEachWindow(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (InPlaceFloatSubList) -> Unit)
inline fun IntList.forEachWindow(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (InPlaceIntSubList) -> Unit)
inline fun LongList.forEachWindow(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (InPlaceLongSubList) -> Unit)

Iterates through the windows of the list and performs the given action on each window.

Link copied to clipboard
inline fun DoubleList.forEachWindowIndexed(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (index: Int, InPlaceDoubleSubList) -> Unit)
inline fun FloatList.forEachWindowIndexed(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (index: Int, InPlaceFloatSubList) -> Unit)
inline fun IntList.forEachWindowIndexed(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (index: Int, InPlaceIntSubList) -> Unit)
inline fun LongList.forEachWindowIndexed(windowSize: Int, step: Int = 1, partialWindows: Boolean = false, action: (index: Int, InPlaceLongSubList) -> Unit)

Iterates through the windows of the list with their indices and performs the given action on each window.

Link copied to clipboard
fun DoubleList.windowedInPlace(windowSize: Int, step: Int = 1, partialWindows: Boolean = false): WindowedDoubleList

Returns a WindowedDoubleList with the given windowSize sliding by step. Each window is a view into the original list.

fun FloatList.windowedInPlace(windowSize: Int, step: Int = 1, partialWindows: Boolean = false): WindowedFloatList

Returns a WindowedFloatList with the given windowSize sliding by step. Each window is a view into the original list.

fun IntList.windowedInPlace(windowSize: Int, step: Int = 1, partialWindows: Boolean = false): WindowedIntList

Returns a WindowedIntList with the given windowSize sliding by step. Each window is a view into the original list.

fun LongList.windowedInPlace(windowSize: Int, step: Int = 1, partialWindows: Boolean = false): WindowedLongList

Returns a WindowedLongList with the given windowSize sliding by step. Each window is a view into the original list.