com.github.arturopala.bufferandslice
Returns value at the given index.
Returns value at the given index.
Returns a trimmed copy of an underlying array.
Returns a trimmed copy of an underlying array.
Returns a buffer with a copy of this Slice.
Returns a buffer with a copy of this Slice.
Returns new iterable of Slice values.
Returns new iterable of Slice values.
Dumps content to the array, starting from an index.
Dumps content to the array, starting from an index.
Counts values fulfilling the predicate.
Counts values fulfilling the predicate.
Detaches a slice creating a trimmed copy of an underlying data, if needed.
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.
Lazily narrows Slice to exclude first N items.
Lazily narrows Slice to exclude first N items.
Lazily narrows Slice to exclude last N items.
Lazily narrows Slice to exclude last N items.
Returns true if any value fulfills the predicate, or false.
Returns true if any value fulfills the predicate, or false.
Returns Some of the first value fulfilling the predicate, or None.
Returns Some of the first value fulfilling the predicate, or None.
Combines from left to right all elements, starting with initial.
Combines from left to right all elements, starting with initial.
Folds from left to right all elements, starting with initial.
Folds from left to right all elements, starting with initial.
Folds from right to left all elements, starting with initial.
Folds from right to left all elements, starting with initial.
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.
Returns first value in the Slice.
Returns first value in the Slice.
Returns first value in the Slice.
Returns first value in the Slice.
Returns iterator over Slice indexes of values fulfilling the predicate.
Returns iterator over Slice indexes of values fulfilling the predicate.
Returns the Slice without last value.
Returns the Slice without last value.
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
Returns iterator over Slice values fulfilling the predicate.
Returns iterator over Slice values fulfilling the predicate.
Returns iterator over Slice values.
Returns iterator over Slice values.
Returns the last value in the Slice.
Returns the last value in the Slice.
Returns the last value in the Slice.
Returns the last value in the Slice.
Sliced range length.
Sliced range length.
Lazily composes mapping function and returns new LazyMapArraySlice.
Lazily composes mapping function and returns new LazyMapArraySlice. Does not modify nor copy underlying array.
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
Returns value at the given index
Returns value at the given index
Combines from right to left all elements.
Combines from right to left all elements.
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.
Returns iterator over Slice values fulfilling the predicate, in the reverse order.
Returns iterator over Slice values fulfilling the predicate, in the reverse order.
Returns iterator over Slice values in the reverse order.
Returns iterator over Slice values in the reverse order.
Lazily narrows Slice to provided range.
Lazily narrows Slice to provided range.
Returns the Slice without first value.
Returns the Slice without first value.
Lazily narrows Slice to first N items.
Lazily narrows Slice to first N items.
Lazily narrows Slice to last N items.
Lazily narrows Slice to last N items.
Returns a trimmed copy of an underlying array.
Returns a trimmed copy of an underlying array.
Returns buffer with a copy of this Slice.
Returns buffer with a copy of this Slice.
Returns new list of Slice values.
Returns new list of Slice values.
Returns new sequence of Slice values.
Returns new sequence of Slice values.
Returns top index value (length-1).
Returns top index value (length-1).
Creates a copy of the slice with modified value.
Creates a copy of the slice with modified value.
Wraps an array preserving current Slice type.
Wraps an array preserving current Slice type.
Lazy, immutable slice of an underlying array.
type of the array's items
Truly immutable only if an underlying array kept private or if detached.