|
Scala Library Documentation
|
|
scala/Array.scala]
object
Array
extends AnyRef| Method Summary | |
def
|
apply (xs : Byte*) : Array[Byte] |
def
|
apply (xs : Float*) : Array[Float] |
def
|
apply (xs : Long*) : Array[Long] |
def
|
apply (xs : Unit*) : Array[Unit] |
def
|
apply (xs : Char*) : Array[Char] |
def
|
apply (xs : Int*) : Array[Int] |
def
|
apply (xs : Boolean*) : Array[Boolean] |
def
|
apply
[A <: AnyRef](xs : A*) : Array[A]
Create an array with given elements.
|
def
|
apply (xs : Short*) : Array[Short] |
def
|
apply (xs : Double*) : Array[Double] |
def
|
concat
[T](xs : Array[T]*) : Array[T]
Concatenate all argument arrays into a single array.
|
def
|
copy
(src : AnyRef, srcPos : Int, dest : AnyRef, destPos : Int, length : Int) : Unit
Copy one array to another.
Equivalent to
System.arraycopy(src, srcPos, dest, destPos, length),
except that this works also for polymorphic and boxed arrays. |
def
|
make
[a](n : Int, elem : a) : Array[a]
Create an array containing several copies of an element.
|
def
|
range
(start : Int, end : Int) : Array[Int]
Create a an array containing of successive integers.
|
def
|
unapplySeq
[A](x : Array[A]) : Option[Seq[A]]
This method is called as a result of a pattern match { case Array(...) => } or val Array(...) = ....
|
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
System.arraycopy(src, srcPos, dest, destPos, length),
except that this works also for polymorphic and boxed arrays.src - ...srcPos - ...dest - ...destPos - ...length - ...xs - ...from - the value of the first element of the arrayend - the value of the last element fo the array plus 1xs - the elements to put in the arrayn - the length of the resulting arrayelem - the element composing the resulting arrayx - the selector value|
Scala Library Documentation
|
|