summaryrefslogtreecommitdiff
path: root/src/library/scala/Array.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/Array.scala')
-rw-r--r--src/library/scala/Array.scala28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/library/scala/Array.scala b/src/library/scala/Array.scala
index 5ff5778800..c8f61d0625 100644
--- a/src/library/scala/Array.scala
+++ b/src/library/scala/Array.scala
@@ -422,7 +422,7 @@ object Array extends FallbackArrayBuilding {
* @param elem the element composing the resulting array
* @return an array composed of n elements all equal to elem
*/
- @deprecated("use `Array.fill' instead", "2.8.0")
+ @deprecated("use `Array.fill` instead", "2.8.0")
def make[T: ClassManifest](n: Int, elem: T): Array[T] = {
val a = new Array[T](n)
var i = 0
@@ -436,7 +436,7 @@ object Array extends FallbackArrayBuilding {
/** Creates an array containing the values of a given function `f`
* over given range `[0..n)`
*/
- @deprecated("use `Array.tabulate' instead", "2.8.0")
+ @deprecated("use `Array.tabulate` instead", "2.8.0")
def fromFunction[T: ClassManifest](f: Int => T)(n: Int): Array[T] = {
val a = new Array[T](n)
var i = 0
@@ -450,28 +450,28 @@ object Array extends FallbackArrayBuilding {
/** Creates an array containing the values of a given function `f`
* over given range `[0..n1, 0..n2)`
*/
- @deprecated("use `Array.tabulate' instead", "2.8.0")
+ @deprecated("use `Array.tabulate` instead", "2.8.0")
def fromFunction[T: ClassManifest](f: (Int, Int) => T)(n1: Int, n2: Int): Array[Array[T]] =
fromFunction(i => fromFunction(f(i, _))(n2))(n1)
/** Creates an array containing the values of a given function `f`
* over given range `[0..n1, 0..n2, 0..n3)`
*/
- @deprecated("use `Array.tabulate' instead", "2.8.0")
+ @deprecated("use `Array.tabulate` instead", "2.8.0")
def fromFunction[T: ClassManifest](f: (Int, Int, Int) => T)(n1: Int, n2: Int, n3: Int): Array[Array[Array[T]]] =
fromFunction(i => fromFunction(f(i, _, _))(n2, n3))(n1)
/** Creates an array containing the values of a given function `f`
* over given range `[0..n1, 0..n2, 0..n3, 0..n4)`
*/
- @deprecated("use `Array.tabulate' instead", "2.8.0")
+ @deprecated("use `Array.tabulate` instead", "2.8.0")
def fromFunction[T: ClassManifest](f: (Int, Int, Int, Int) => T)(n1: Int, n2: Int, n3: Int, n4: Int): Array[Array[Array[Array[T]]]] =
fromFunction(i => fromFunction(f(i, _, _, _))(n2, n3, n4))(n1)
/** Creates an array containing the values of a given function `f`
* over given range `[0..n1, 0..n2, 0..n3, 0..n4, 0..n5)`
*/
- @deprecated("use `Array.tabulate' instead", "2.8.0")
+ @deprecated("use `Array.tabulate` instead", "2.8.0")
def fromFunction[T: ClassManifest](f: (Int, Int, Int, Int, Int) => T)(n1: Int, n2: Int, n3: Int, n4: Int, n5: Int): Array[Array[Array[Array[Array[T]]]]] =
fromFunction(i => fromFunction(f(i, _, _, _, _))(n2, n3, n4, n5))(n1)
}
@@ -485,56 +485,56 @@ object Array extends FallbackArrayBuilding {
final class Array[T](_length: Int) extends java.io.Serializable with java.lang.Cloneable {
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int) = {
this(dim1)
throw new Error()
}
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int, dim3: Int) = {
this(dim1)
throw new Error()
}
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int) = {
this(dim1)
throw new Error()
}
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int) = {
this(dim1);
throw new Error()
}
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int) = {
this(dim1)
throw new Error()
}
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int, dim7: Int) = {
this(dim1)
throw new Error()
}
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int, dim7: Int, dim8: Int) = {
this(dim1)
throw new Error()
}
/** Multidimensional array creation */
- @deprecated("use `Array.ofDim' instead", "2.8.0")
+ @deprecated("use `Array.ofDim` instead", "2.8.0")
def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int, dim7: Int, dim8: Int, dim9: Int) = {
this(dim1)
throw new Error()