summaryrefslogtreecommitdiff
path: root/src/library/scala/Function.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-01-18 05:02:30 +0000
committerPaul Phillips <paulp@improving.org>2010-01-18 05:02:30 +0000
commit853b1817beb5f8b55ecbd1ffdf0e226fc699acae (patch)
treece44fe7e2cc25670aecd70f36e70ae9f0cfe399f /src/library/scala/Function.scala
parentd73a32db9cb0357cb365b78bdbd0fa8d6af9873c (diff)
downloadscala-853b1817beb5f8b55ecbd1ffdf0e226fc699acae.tar.gz
scala-853b1817beb5f8b55ecbd1ffdf0e226fc699acae.tar.bz2
scala-853b1817beb5f8b55ecbd1ffdf0e226fc699acae.zip
Adjectified some parts of speech as discussed o...
Adjectified some parts of speech as discussed on the mailing list. The methods to call on FunctionN are "curried" and "tupled" with "curry" deprecated and "tuple" gone. Closes #2907. Review by community.
Diffstat (limited to 'src/library/scala/Function.scala')
-rw-r--r--src/library/scala/Function.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/library/scala/Function.scala b/src/library/scala/Function.scala
index 2c9772c526..0409d938fd 100644
--- a/src/library/scala/Function.scala
+++ b/src/library/scala/Function.scala
@@ -36,7 +36,7 @@ object Function
* @param f ...
* @return ...
*/
- @deprecated("Use `f.curry` instead")
+ @deprecated("Use `f.curried` instead")
def curried[a1, a2, b](f: (a1, a2) => b): a1 => a2 => b = {
x1 => x2 => f(x1, x2)
}
@@ -46,21 +46,21 @@ object Function
* @param f ...
* @return ...
*/
- @deprecated("Use `f.curry` instead")
+ @deprecated("Use `f.curried` instead")
def curried[a1, a2, a3, b](f: (a1, a2, a3) => b): a1 => a2 => a3 => b = {
x1 => x2 => x3 => f(x1, x2, x3)
}
/** Currying for functions of arity 4.
*/
- @deprecated("Use `f.curry` instead")
+ @deprecated("Use `f.curried` instead")
def curried[a1, a2, a3, a4, b](f: (a1, a2, a3, a4) => b): a1 => a2 => a3 => a4 => b = {
x1 => x2 => x3 => x4 => f(x1, x2, x3, x4)
}
/** Currying for functions of arity 5.
*/
- @deprecated("Use `f.curry` instead")
+ @deprecated("Use `f.curried` instead")
def curried[a1, a2, a3, a4, a5, b](f: (a1, a2, a3, a4, a5) => b): a1 => a2 => a3 => a4 => a5 => b = {
x1 => x2 => x3 => x4 => x5 => f(x1, x2, x3, x4, x5)
}
@@ -96,7 +96,7 @@ object Function
* @param f ...
* @return ...
*/
- @deprecated("Use `f.tuple` instead")
+ @deprecated("Use `f.tupled` instead")
def tupled[a1, a2, b](f: (a1, a2) => b): Tuple2[a1, a2] => b = {
case Tuple2(x1, x2) => f(x1, x2)
}
@@ -104,7 +104,7 @@ object Function
/** Tupling for functions of arity 3. This transforms a function
* of arity 3 into a unary function that takes a triple of arguments.
*/
- @deprecated("Use `f.tuple` instead")
+ @deprecated("Use `f.tupled` instead")
def tupled[a1, a2, a3, b](f: (a1, a2, a3) => b): Tuple3[a1, a2, a3] => b = {
case Tuple3(x1, x2, x3) => f(x1, x2, x3)
}
@@ -112,7 +112,7 @@ object Function
/** Tupling for functions of arity 4. This transforms a function
* of arity 4 into a unary function that takes a 4-tuple of arguments.
*/
- @deprecated("Use `f.tuple` instead")
+ @deprecated("Use `f.tupled` instead")
def tupled[a1, a2, a3, a4, b](f: (a1, a2, a3, a4) => b): Tuple4[a1, a2, a3, a4] => b = {
case Tuple4(x1, x2, x3, x4) => f(x1, x2, x3, x4)
}
@@ -120,7 +120,7 @@ object Function
/** Tupling for functions of arity 5. This transforms a function
* of arity 5 into a unary function that takes a 5-tuple of arguments.
*/
- @deprecated("Use `f.tuple` instead")
+ @deprecated("Use `f.tupled` instead")
def tupled[a1, a2, a3, a4, a5, b](f: (a1, a2, a3, a4, a5) => b): Tuple5[a1, a2, a3, a4, a5] => b = {
case Tuple5(x1, x2, x3, x4, x5) => f(x1, x2, x3, x4, x5)
}