abstract class ArraySlice[T] extends Slice[T]
Lazy, immutable slice of an underlying array.
- T
type of the array's items
- Grouped
- Alphabetic
- By Inheritance
- ArraySlice
- Slice
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
type
A
Type of the underlying array items.
Abstract Value Members
Concrete 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 withing the range.
Returns value at the given index withing the range.
- Definition Classes
- ArraySlice → Slice → Function1
-
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
- ArraySlice → Slice
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ Int): (A) ⇒ T
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
count(pred: (T) ⇒ Boolean): Int
Counts values fulfilling the predicate.
Counts values fulfilling the predicate.
- Definition Classes
- ArraySlice → Slice
-
final
def
drop(n: Int): Slice[T]
Lazily narrows Slice to exclude first N items.
Lazily narrows Slice to exclude first N items.
- Definition Classes
- ArraySlice → Slice
-
final
def
dropRight(n: Int): Slice[T]
Lazily narrows Slice to exclude last N items.
Lazily narrows Slice to exclude last N items.
- Definition Classes
- ArraySlice → Slice
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals(obj: Any): Boolean
- Definition Classes
- ArraySlice → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
hashCode(): Int
- Definition Classes
- ArraySlice → AnyRef → Any
-
final
def
head: T
Returns first value in the Slice.
Returns first value in the Slice.
- Definition Classes
- ArraySlice → Slice
-
final
def
headOption: Option[T]
Returns first value in the Slice.
Returns first value in the Slice.
- Definition Classes
- ArraySlice → Slice
-
final
def
init: Slice[T]
Returns the Slice without last value.
Returns the Slice without last value.
- Definition Classes
- ArraySlice → Slice
-
final
def
isEmpty: Boolean
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
- Definition Classes
- ArraySlice → Slice
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
iterator: Iterator[T]
Returns iterator over Slice values.
Returns iterator over Slice values.
- Definition Classes
- ArraySlice → Slice
-
final
def
last: T
Returns the last value in the Slice.
Returns the last value in the Slice.
- Definition Classes
- ArraySlice → Slice
-
final
def
lastOption: Option[T]
Returns the last value in the Slice.
Returns the last value in the Slice.
- Definition Classes
- ArraySlice → Slice
-
final
val
length: Int
Sliced range length.
Sliced range length.
- Definition Classes
- ArraySlice → Slice
-
final
def
map[K](f: (T) ⇒ K): Slice[K]
Lazily composes mapping function and returns new Slice.
Lazily composes mapping function and returns new Slice. Does not modify nor copy underlying array.
- Definition Classes
- ArraySlice → 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
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
- ArraySlice → 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
- ArraySlice → Slice
-
final
def
sameElements(iterator1: Iterator[T], iterator2: Iterator[T]): Boolean
Checks if two iterators would return same elements.
-
final
def
slice(from: Int, to: Int): Slice[T]
Lazily narrows Slice to provided range.
Lazily narrows Slice to provided range.
- Definition Classes
- ArraySlice → Slice
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
tail: Slice[T]
Returns the Slice without first value.
Returns the Slice without first value.
- Definition Classes
- ArraySlice → Slice
-
final
def
take(n: Int): Slice[T]
Lazily narrows Slice to first N items.
Lazily narrows Slice to first N items.
- Definition Classes
- ArraySlice → Slice
-
final
def
takeRight(n: Int): Slice[T]
Lazily narrows Slice to last N items.
Lazily narrows Slice to last N items.
- Definition Classes
- ArraySlice → Slice
-
final
def
toArray(implicit tag: ClassTag[T]): Array[T]
Returns minimal copy of an underlying array, trimmed to the actual range.
Returns minimal copy of an underlying array, trimmed to the actual range.
- Definition Classes
- ArraySlice → Slice
-
final
def
toBuffer(implicit tag: ClassTag[T]): Buffer[T]
Returns buffer with a copy of this Slice.
Returns buffer with a copy of this Slice.
- Definition Classes
- ArraySlice → Slice
-
final
def
toList: List[T]
Returns new list of Slice values.
Returns new list of Slice values.
- Definition Classes
- ArraySlice → Slice
-
final
def
toString(): String
- Definition Classes
- ArraySlice → Function1 → AnyRef → Any
-
final
def
update(index: Int, value: T)(implicit tag: ClassTag[T]): Slice[T]
Creates a copy of the slice with modified value.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()