summaryrefslogtreecommitdiff
path: root/src/library/scala/Product22.scala
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-16 14:45:25 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-16 14:45:25 +0000
commit92ec9e276b481844860a07f1e9e64dff2c4ce7f8 (patch)
tree7930a55bb4868ab45f98f80d0bdf57accf3f9e39 /src/library/scala/Product22.scala
parent374b34db53f480d51507a554abfe029ee20d1c2b (diff)
downloadscala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.gz
scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.bz2
scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.zip
Improvements to genprod
Added uncurry to Function2, swap to Tuple2.
Diffstat (limited to 'src/library/scala/Product22.scala')
-rw-r--r--src/library/scala/Product22.scala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/library/scala/Product22.scala b/src/library/scala/Product22.scala
index a70e1e47a3..90027902b6 100644
--- a/src/library/scala/Product22.scala
+++ b/src/library/scala/Product22.scala
@@ -1,7 +1,7 @@
/* __ *\
** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Thu Apr 19 18:52:00 CEST 2007
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
@@ -21,6 +21,7 @@ object Product22 {
}
/** Product22 is a cartesian product of 22 components
+ *
*/
trait Product22[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19, +T20, +T21, +T22] extends Product {
@@ -38,6 +39,7 @@ trait Product22[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -131,4 +133,6 @@ trait Product22[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _22: T22
+
+
}