Lazy, immutable slice of an underlying array.
- Type Params
- T
type of the array's items
- Note
Truly immutable only if an underlying array kept private or if detached.
- Companion
- object
Value members
Concrete methods
Inherited methods
Returns a trimmed copy of an underlying array.
Returns a trimmed copy of an underlying array.
- Definition Classes
- Inherited from
- ArraySliceLike
Returns new iterable of Slice values.
Returns new iterable of Slice values.
- Inherited from
- Slice
Dumps content to the array, starting from an index.
Dumps content to the array, starting from an index.
- Definition Classes
- Inherited from
- ArraySliceLike
Counts values fulfilling the predicate.
Counts values fulfilling the predicate.
- Inherited from
- Slice
Detaches a slice creating a trimmed copy of an underlying data, if needed. Subsequent detach operations will return the same instance without making new copies.
Detaches a slice creating a trimmed copy of an underlying data, if needed. Subsequent detach operations will return the same instance without making new copies.
- Definition Classes
- Inherited from
- ArraySliceLike
Lazily narrows Slice to exclude first N items.
Lazily narrows Slice to exclude first N items.
- Inherited from
- Slice
Lazily narrows Slice to exclude last N items.
Lazily narrows Slice to exclude last N items.
- Inherited from
- Slice
Returns true if any value fulfills the predicate, or false.
Returns true if any value fulfills the predicate, or false.
- Inherited from
- Slice
Returns Some of the first value fulfilling the predicate, or None.
Returns Some of the first value fulfilling the predicate, or None.
- Inherited from
- Slice
Combines from left to right all elements, starting with initial.
Combines from left to right all elements, starting with initial.
- Inherited from
- Slice
Folds from left to right all elements, starting with initial.
Folds from left to right all elements, starting with initial.
- Inherited from
- Slice
Folds from right to left all elements, starting with initial.
Folds from right to left all elements, starting with initial.
- Inherited from
- Slice
Returns Some of the value at the index, or None if index outside of range.
Returns Some of the value at the index, or None if index outside of range.
- Inherited from
- Slice
Returns iterator over Slice indexes of values fulfilling the predicate.
Returns iterator over Slice indexes of values fulfilling the predicate.
- Inherited from
- Slice
Returns the Slice without last value.
Returns the Slice without last value.
- Inherited from
- Slice
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
- Inherited from
- Slice
Returns iterator over Slice values fulfilling the predicate.
Returns iterator over Slice values fulfilling the predicate.
- Inherited from
- Slice
Lazily composes mapping function and returns new LazyMapArraySlice. Does not modify nor copy underlying array.
Lazily composes mapping function and returns new LazyMapArraySlice. Does not modify nor copy underlying array.
- Definition Classes
- Inherited from
- ArraySliceLike
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
- Inherited from
- Slice
Returns value at the given index
Returns value at the given index
- Definition Classes
- Inherited from
- ArraySliceLike
Combines from right to left all elements.
Combines from right to left all elements.
- Inherited from
- Slice
Returns iterator over Slice indexes of values fulfilling the predicate, in the reverse order.
Returns iterator over Slice indexes of values fulfilling the predicate, in the reverse order.
- Inherited from
- Slice
Returns iterator over Slice values fulfilling the predicate, in the reverse order.
Returns iterator over Slice values fulfilling the predicate, in the reverse order.
- Inherited from
- Slice
Returns iterator over Slice values in the reverse order.
Returns iterator over Slice values in the reverse order.
- Inherited from
- Slice
Lazily narrows Slice to provided range.
Lazily narrows Slice to provided range.
- Definition Classes
- Inherited from
- ArraySliceLike
Returns the Slice without first value.
Returns the Slice without first value.
- Inherited from
- Slice
Lazily narrows Slice to first N items.
Lazily narrows Slice to first N items.
- Inherited from
- Slice
Lazily narrows Slice to last N items.
Lazily narrows Slice to last N items.
- Inherited from
- Slice
Returns a trimmed copy of an underlying array.
Returns a trimmed copy of an underlying array.
- Inherited from
- Slice
Returns new list of Slice values.
Returns new list of Slice values.
- Inherited from
- Slice
Returns new sequence of Slice values.
Returns new sequence of Slice values.
- Inherited from
- Slice
Returns top index value (length-1).
Returns top index value (length-1).
- Inherited from
- Slice
Creates a copy of the slice with modified value.
Creates a copy of the slice with modified value.
- Definition Classes
- Inherited from
- ArraySliceLike