diff options
Diffstat (limited to 'src/library/scala/Function2.scala')
-rw-r--r-- | src/library/scala/Function2.scala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/library/scala/Function2.scala b/src/library/scala/Function2.scala index cacb96ef5d..5ea2b411bb 100644 --- a/src/library/scala/Function2.scala +++ b/src/library/scala/Function2.scala @@ -37,20 +37,6 @@ trait Function2[@specialized(scala.Int, scala.Long, scala.Double) -T1, @speciali * @return the result of function application. */ def apply(v1: T1, v2: T2): R - /** Creates a curried version of this function. - * - * @return a function `f` such that `f(x1)(x2) == apply(x1, x2)` - */ def curried: T1 => T2 => R = { - (x1: T1) => (x2: T2) => apply(x1, x2) - } - /** Creates a tupled version of this function: instead of 2 arguments, - * it accepts a single [[scala.Tuple2]] argument. - * - * @return a function `f` such that `f((x1, x2)) == f(Tuple2(x1, x2)) == apply(x1, x2)` - */ - def tupled: Tuple2[T1, T2] => R = { - case Tuple2(x1, x2) => apply(x1, x2) - } override def toString() = "<function2>" } |