summaryrefslogtreecommitdiff
path: root/src/library/scala/Function3.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/Function3.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/Function3.scala')
-rw-r--r--src/library/scala/Function3.scala12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/library/scala/Function3.scala b/src/library/scala/Function3.scala
index 5493716bd9..52c777fdc9 100644
--- a/src/library/scala/Function3.scala
+++ b/src/library/scala/Function3.scala
@@ -8,7 +8,7 @@
// $Id$
-// generated by genprod on Mon Nov 30 12:09:35 PST 2009 (with extra methods)
+// generated by genprod on Sun Jan 17 19:38:09 PST 2010 (with extra methods)
package scala
@@ -23,15 +23,17 @@ trait Function3[-T1, -T2, -T3, +R] extends AnyRef { self =>
def apply(v1:T1,v2:T2,v3:T3): R
override def toString() = "<function3>"
- /** f(x1, x2, x3) == (f.curry)(x1)(x2)(x3)
+ /** f(x1, x2, x3) == (f.curried)(x1)(x2)(x3)
*/
- def curry: T1 => T2 => T3 => R = {
+ def curried: T1 => T2 => T3 => R = {
(x1: T1) => (x2: T2) => (x3: T3) => apply(x1, x2, x3)
}
+ @deprecated("Use 'curried' instead")
+ def curry = curried
- /* f(x1, x2, x3) == (f.tuple)(Tuple3(x1, x2, x3))
+ /* f(x1, x2, x3) == (f.tupled)(Tuple3(x1, x2, x3))
*/
- def tuple: Tuple3[T1, T2, T3] => R = {
+ def tupled: Tuple3[T1, T2, T3] => R = {
case Tuple3(x1, x2, x3) => apply(x1, x2, x3)
}