class RangeMapSlice[T] extends Slice[T]
Lazily mapped slice of an index range.
- Alphabetic
- By Inheritance
- RangeMapSlice
- Slice
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (T) => A): (Int) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def apply(index: Int): T
Returns value at the given index.
Returns value at the given index.
- Definition Classes
- Slice → Function1
- final def asArray: Array[T]
Returns an array of mapped values.
Returns an array of mapped values.
- Definition Classes
- RangeMapSlice → Slice
- final def asBuffer: Buffer[T]
Returns a buffer with a copy of this Slice.
Returns a buffer with a copy of this Slice.
- Definition Classes
- RangeMapSlice → Slice
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def asIterable: Iterable[T]
Returns new iterable of Slice values.
Returns new iterable of Slice values.
- Definition Classes
- Slice
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compose[A](g: (A) => Int): (A) => T
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def copyToArray[T1 >: T](targetIndex: Int, targetArray: Array[T1]): Array[T1]
Dumps content to the array, starting from an index.
Dumps content to the array, starting from an index.
- Definition Classes
- Slice
- final def count(pred: (T) => Boolean): Int
Counts values fulfilling the predicate.
Counts values fulfilling the predicate.
- Definition Classes
- Slice
- final def detach: RangeMapSlice.this.type
Does nothing as this type of Slice does not have underlying mutable data.
Does nothing as this type of Slice does not have underlying mutable data.
- Definition Classes
- RangeMapSlice → Slice
- final def drop(n: Int): RangeMapSlice.this.type
Lazily narrows Slice to exclude first N items.
Lazily narrows Slice to exclude first N items.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def dropRight(n: Int): RangeMapSlice.this.type
Lazily narrows Slice to exclude last N items.
Lazily narrows Slice to exclude last N items.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(obj: Any): Boolean
- Definition Classes
- Slice → AnyRef → Any
- final def exists(pred: (T) => Boolean): Boolean
Returns true if any value fulfills the predicate, or false.
Returns true if any value fulfills the predicate, or false.
- Definition Classes
- Slice
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def find(pred: (T) => Boolean): Option[T]
Returns Some of the first value fulfilling the predicate, or None.
Returns Some of the first value fulfilling the predicate, or None.
- Definition Classes
- Slice
- final def fold(initial: T)(f: (T, T) => T): T
Combines from left to right all elements, starting with initial.
Combines from left to right all elements, starting with initial.
- Definition Classes
- Slice
- final def foldLeft[R](initial: R)(f: (R, T) => R): R
Folds from left to right all elements, starting with initial.
Folds from left to right all elements, starting with initial.
- Definition Classes
- Slice
- final def foldRight[R](initial: R)(f: (T, R) => R): R
Folds from right to left all elements, starting with initial.
Folds from right to left all elements, starting with initial.
- Definition Classes
- Slice
- final def get(index: Int): Option[T]
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.
- Definition Classes
- Slice
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def hashCode(): Int
- Definition Classes
- Slice → AnyRef → Any
- final def head: T
Returns first value in the Slice.
Returns first value in the Slice.
- Definition Classes
- Slice
- final def headOption: Option[T]
Returns first value in the Slice.
Returns first value in the Slice.
- Definition Classes
- Slice
- final def indexIterator(pred: (T) => Boolean): Iterator[Int]
Returns iterator over Slice indexes of values fulfilling the predicate.
Returns iterator over Slice indexes of values fulfilling the predicate.
- Definition Classes
- Slice
- final def init: RangeMapSlice.this.type
Returns the Slice without last value.
Returns the Slice without last value.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def isEmpty: Boolean
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
- Definition Classes
- Slice
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def iterator(pred: (T) => Boolean): Iterator[T]
Returns iterator over Slice values fulfilling the predicate.
Returns iterator over Slice values fulfilling the predicate.
- Definition Classes
- Slice
- final def iterator: Iterator[T]
Returns iterator over Slice values.
Returns iterator over Slice values.
- Definition Classes
- Slice
- final def last: T
Returns the last value in the Slice.
Returns the last value in the Slice.
- Definition Classes
- Slice
- final def lastOption: Option[T]
Returns the last value in the Slice.
Returns the last value in the Slice.
- Definition Classes
- Slice
- final val length: Int
Sliced range length.
Sliced range length.
- Definition Classes
- RangeMapSlice → Slice
- final def map[K](f: (T) => K): RangeMapSlice[K]
Lazily composes mapping function and returns new IndexMapSlice.
Lazily composes mapping function and returns new IndexMapSlice. Does not modify nor copy underlying array.
- Definition Classes
- RangeMapSlice → Slice
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def nonEmpty: Boolean
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def read(index: Int): T
Returns value at the given index
Returns value at the given index
- Attributes
- protected
- Definition Classes
- RangeMapSlice → Slice
- Annotations
- @inline()
- final def reduce(f: (T, T) => T): T
Combines from right to left all elements.
Combines from right to left all elements.
- Definition Classes
- Slice
- final def reverseIndexIterator(pred: (T) => Boolean): Iterator[Int]
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.
- Definition Classes
- Slice
- final def reverseIterator(pred: (T) => Boolean): Iterator[T]
Returns iterator over Slice values fulfilling the predicate, in the reverse order.
Returns iterator over Slice values fulfilling the predicate, in the reverse order.
- Definition Classes
- Slice
- final def reverseIterator: Iterator[T]
Returns iterator over Slice values in the reverse order.
Returns iterator over Slice values in the reverse order.
- Definition Classes
- Slice
- final def slice(from: Int, to: Int): RangeMapSlice.this.type
Lazily narrows Slice to provided range.
Lazily narrows Slice to provided range.
- Definition Classes
- RangeMapSlice → Slice
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def tail: RangeMapSlice.this.type
Returns the Slice without first value.
Returns the Slice without first value.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def take(n: Int): RangeMapSlice.this.type
Lazily narrows Slice to first N items.
Lazily narrows Slice to first N items.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def takeRight(n: Int): RangeMapSlice.this.type
Lazily narrows Slice to last N items.
Lazily narrows Slice to last N items.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def toArray[T1 >: T](implicit arg0: ClassTag[T1]): Array[T1]
Returns a trimmed copy of an underlying array.
Returns a trimmed copy of an underlying array.
- Definition Classes
- Slice
- final def toBuffer[T1 >: T]: Buffer[T1]
Returns buffer with a copy of this Slice.
Returns buffer with a copy of this Slice.
- Definition Classes
- RangeMapSlice → Slice
- final def toList: List[T]
Returns new list of Slice values.
Returns new list of Slice values.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def toSeq: Seq[T]
Returns new sequence of Slice values.
Returns new sequence of Slice values.
- Definition Classes
- Slice
- Annotations
- @inline()
- final def toString(): String
- Definition Classes
- Slice → Function1 → AnyRef → Any
- final def top: Int
Returns top index value (length-1).
Returns top index value (length-1).
- Definition Classes
- Slice
- Annotations
- @inline()
- final def update[T1 >: T](index: Int, value: T1): Slice[T1]
Creates a copy of the slice with modified value.
Creates a copy of the slice with modified value.
- Definition Classes
- RangeMapSlice → Slice
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()