scala

Array

object Array extends FallbackArrayBuilding

This object contains utility methods operating on arrays.

Inherits

  1. FallbackArrayBuilding
  2. AnyRef
  3. Any

Value Members

  1. def apply(x: Unit, xs: Unit*): Array[Unit]

  2. def apply(x: Double, xs: Double*): Array[Double]

  3. def apply(x: Float, xs: Float*): Array[Float]

  4. def apply(x: Long, xs: Long*): Array[Long]

  5. def apply(x: Int, xs: Int*): Array[Int]

  6. def apply(x: Char, xs: Char*): Array[Char]

  7. def apply(x: Short, xs: Short*): Array[Short]

  8. def apply(x: Byte, xs: Byte*): Array[Byte]

  9. def apply(x: Boolean, xs: Boolean*): Array[Boolean]

  10. def apply[T](xs: T*)(arg0: ClassManifest[T]): Array[T]

    Create an array with given elements

  11. def canBuildFrom[T](m: ClassManifest[T]): CanBuildFrom[Array[_], T, Array[T]]

  12. def concat[T](xss: Array[T]*)(arg0: ClassManifest[T]): Array[T]

    Concatenate all argument sequences into a single array

  13. def copy(src: AnyRef, srcPos: Int, dest: AnyRef, destPos: Int, length: Int): Unit

    Copy one array to another

  14. def empty[T](arg0: ClassManifest[T]): Array[T]

    Returns array of length 0

  15. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  16. def fallbackCanBuildFrom[T](m: DummyImplicit): CanBuildFrom[Array[_], T, GenericArray[T]]

    A builder factory that generates a generic array

  17. def fill[T](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(elem: ⇒ T)(arg0: ClassManifest[T]): Array[Array[Array[Array[Array[T]]]]]

    A five-dimensional array that contains the results of some element computation a number of times

  18. def fill[T](n1: Int, n2: Int, n3: Int, n4: Int)(elem: ⇒ T)(arg0: ClassManifest[T]): Array[Array[Array[Array[T]]]]

    A four-dimensional array that contains the results of some element computation a number of times

  19. def fill[T](n1: Int, n2: Int, n3: Int)(elem: ⇒ T)(arg0: ClassManifest[T]): Array[Array[Array[T]]]

    A three-dimensional array that contains the results of some element computation a number of times

  20. def fill[T](n1: Int, n2: Int)(elem: ⇒ T)(arg0: ClassManifest[T]): Array[Array[T]]

    A two-dimensional array that contains the results of some element computation a number of times

  21. def fill[T](n: Int)(elem: ⇒ T)(arg0: ClassManifest[T]): Array[T]

    An array that contains the results of some element computation a number of times

  22. def fromFunction[T](f: (Int, Int, Int, Int, Int) ⇒ T)(n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(arg0: ClassManifest[T]): Array[Array[Array[Array[Array[T]]]]]

    Create an array containing the values of a given function f over given range [0

  23. def fromFunction[T](f: (Int, Int, Int, Int) ⇒ T)(n1: Int, n2: Int, n3: Int, n4: Int)(arg0: ClassManifest[T]): Array[Array[Array[Array[T]]]]

    Create an array containing the values of a given function f over given range [0

  24. def fromFunction[T](f: (Int, Int, Int) ⇒ T)(n1: Int, n2: Int, n3: Int)(arg0: ClassManifest[T]): Array[Array[Array[T]]]

    Create an array containing the values of a given function f over given range [0

  25. def fromFunction[T](f: (Int, Int) ⇒ T)(n1: Int, n2: Int)(arg0: ClassManifest[T]): Array[Array[T]]

    Create an array containing the values of a given function f over given range [0

  26. def fromFunction[T](f: (Int) ⇒ T)(n: Int)(arg0: ClassManifest[T]): Array[T]

    Create an array containing the values of a given function f over given range [0

  27. def hashCode(): Int

    Returns a hash code value for the object

  28. def iterate[T](start: T, len: Int)(f: (T) ⇒ T)(arg0: ClassManifest[T]): Array[T]

    An array containing repeated applications of a function to a start value

  29. def make[T](n: Int, elem: T)(arg0: ClassManifest[T]): Array[T]

    Create an array containing several copies of an element

  30. def newBuilder[T](m: ClassManifest[T]): ArrayBuilder[T]

  31. def ofDim[T](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(arg0: ClassManifest[T]): Array[Array[Array[Array[Array[T]]]]]

  32. def ofDim[T](n1: Int, n2: Int, n3: Int, n4: Int)(arg0: ClassManifest[T]): Array[Array[Array[Array[T]]]]

  33. def ofDim[T](n1: Int, n2: Int, n3: Int)(arg0: ClassManifest[T]): Array[Array[Array[T]]]

  34. def ofDim[T](n1: Int, n2: Int)(arg0: ClassManifest[T]): Array[Array[T]]

  35. def ofDim[T](n1: Int)(arg0: ClassManifest[T]): Array[T]

    Create array with given dimensions

  36. def range(start: Int, end: Int, step: Int): Array[Int]

    An array containing equally spaced values in some integer interval

  37. def range(start: Int, end: Int): Array[Int]

    An array containing a sequence of increasing integers in a range

  38. def tabulate[T](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(f: (Int, Int, Int, Int, Int) ⇒ T)(arg0: ClassManifest[T]): Array[Array[Array[Array[Array[T]]]]]

    A five-dimensional array containing values of a given function over ranges of integer values starting from 0

  39. def tabulate[T](n1: Int, n2: Int, n3: Int, n4: Int)(f: (Int, Int, Int, Int) ⇒ T)(arg0: ClassManifest[T]): Array[Array[Array[Array[T]]]]

    A four-dimensional array containing values of a given function over ranges of integer values starting from 0

  40. def tabulate[T](n1: Int, n2: Int, n3: Int)(f: (Int, Int, Int) ⇒ T)(arg0: ClassManifest[T]): Array[Array[Array[T]]]

    A three-dimensional array containing values of a given function over ranges of integer values starting from 0

  41. def tabulate[T](n1: Int, n2: Int)(f: (Int, Int) ⇒ T)(arg0: ClassManifest[T]): Array[Array[T]]

    A two-dimensional array containing values of a given function over ranges of integer values starting from 0

  42. def tabulate[T](n: Int)(f: (Int) ⇒ T)(arg0: ClassManifest[T]): Array[T]

    An array containing values of a given function over a range of integer values starting from 0

  43. def toString(): String

    Returns a string representation of the object

  44. def unapplySeq[T](x: Array[T]): Option[IndexedSeq[T]]

    This method is called in a pattern match { case Seq(