InPlaceDoubleSubList

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.

This class does not modify the original list and only provides read-only access to the sublist.

Properties

Link copied to clipboard
val size: Int

Returns the size of this sublist.

Functions

Link copied to clipboard
inline fun forEach(action: (Double) -> Unit)

Performs the given action for each element in this sublist.

Link copied to clipboard
inline fun forEachIndexed(action: (index: Int, Double) -> Unit)

Performs the given action for each element in this sublist, providing its index relative to this sublist.

Link copied to clipboard
operator fun get(index: Int): Double

Returns the element at the specified index in this sublist.