scala

object Array

[source: scala/Array.scala]

object Array
extends AnyRef
This object contains utility methods operating on arrays.
Author
Martin Odersky
Version
1.0
Method Summary
def apply (xs : Long*) : Array[Long]
def apply (xs : Char*) : Array[Char]
def apply (xs : Unit*) : Array[Unit]
def apply (xs : Byte*) : Array[Byte]
def apply (xs : Short*) : Array[Short]
def apply (xs : Boolean*) : Array[Boolean]
def apply [A <: AnyRef](xs : A*) : Array[A]
Create an array with given elements.
def apply (xs : Int*) : Array[Int]
def apply (xs : Double*) : Array[Double]
def apply (xs : Float*) : Array[Float]
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