|
Scala Library
|
|
class
GenericArray[A](val override length : Int)
extends IndexedSeq[A] with GenericTraversableTemplate[A, GenericArray] with IndexedSeqLike[A, GenericArray[A]]| Value Summary | |
val
|
array : Array[AnyRef] |
| Method Summary | |
def
|
apply
(idx : Int) : A
Returns the elements at position `idx`
|
override def
|
companion
: GenericCompanion[GenericArray]
The factory companion object that builds instances of class CC
|
override def
|
copyToArray
[B >: A](xs : Array[B], start : Int, len : Int) : Unit
Fills the given array
xs with at most `len` elements of
this traversable starting at position `start`.
Copying will stop once either the end of the current traversable is reached or
`len` elements have been copied or the end of the array is reached. |
override def
|
foreach
[U](f : (A) => U) : Unit
Apply a function
f to all elements of this
iterable object. |
def
|
update (idx : Int, elem : A) : Unit |
| Methods inherited from IndexedSeqLike | |
| thisCollection, toCollection, view, view |
| Methods inherited from IndexedSeqLike | |
| iterator, isEmpty, forall, exists, find, foldLeft, foldRight, reduceLeft, reduceRight, zip, zipWithIndex, slice, head, tail, last, init, take, drop, takeRight, dropRight, splitAt, takeWhile, dropWhile, span, sameElements, lengthCompare, segmentLength, indexWhere, lastIndexWhere, reverse, reverseIterator, startsWith, endsWith |
| Methods inherited from SeqLike | |
| size, isDefinedAt, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reverseMap, reversedElements, startsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, updated, +:, :+, padTo, sortWith, sortWith, sortBy, toSeq, indices, hashCode, equals, toString, findLastIndexOf, equalsWith, containsSlice, projection |
| Methods inherited from PartialFunction | |
| orElse, andThen |
| Methods inherited from Function1 | |
| compose |
| Methods inherited from IterableLike | |
| elements, toIterable, zipAll, toStream, canEqual, first, firstOption |
| Methods inherited from GenericTraversableTemplate | |
| newBuilder, genericBuilder, unzip, flatten, transpose |
| Methods inherited from TraversableLike | |
| repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, /:, :\, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, lastOption, copyToBuffer, copyToArray, toArray, toList, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter |
| Methods inherited from AnyRef | |
| getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Value Details |
| Method Details |
override
def
companion : GenericCompanion[GenericArray]
f to all elements of this
iterable object.f - A function that is applied for its side-effect to every element. The result (of arbitrary type U) of function `f` is discarded.xs with at most `len` elements of
this traversable starting at position `start`.
Copying will stop once either the end of the current traversable is reached or
`len` elements have been copied or the end of the array is reached.xs - the array to fill.start - starting index.len - number of elements to copy|
Scala Library
|
|