summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/build/genprod.scala56
-rw-r--r--src/library/scala/Console.scala8
-rw-r--r--src/library/scala/Function0.scala8
-rw-r--r--src/library/scala/Function1.scala12
-rw-r--r--src/library/scala/Function10.scala2
-rw-r--r--src/library/scala/Function11.scala2
-rw-r--r--src/library/scala/Function12.scala2
-rw-r--r--src/library/scala/Function13.scala2
-rw-r--r--src/library/scala/Function14.scala2
-rw-r--r--src/library/scala/Function15.scala2
-rw-r--r--src/library/scala/Function16.scala2
-rw-r--r--src/library/scala/Function17.scala2
-rw-r--r--src/library/scala/Function18.scala2
-rw-r--r--src/library/scala/Function19.scala2
-rw-r--r--src/library/scala/Function2.scala12
-rw-r--r--src/library/scala/Function20.scala2
-rw-r--r--src/library/scala/Function21.scala2
-rw-r--r--src/library/scala/Function22.scala2
-rw-r--r--src/library/scala/Function3.scala4
-rw-r--r--src/library/scala/Function4.scala4
-rw-r--r--src/library/scala/Function5.scala4
-rw-r--r--src/library/scala/Function6.scala4
-rw-r--r--src/library/scala/Function7.scala4
-rw-r--r--src/library/scala/Function8.scala4
-rw-r--r--src/library/scala/Function9.scala17
-rw-r--r--src/library/scala/Product1.scala8
-rw-r--r--src/library/scala/Product10.scala8
-rw-r--r--src/library/scala/Product11.scala8
-rw-r--r--src/library/scala/Product12.scala8
-rw-r--r--src/library/scala/Product13.scala8
-rw-r--r--src/library/scala/Product14.scala8
-rw-r--r--src/library/scala/Product15.scala8
-rw-r--r--src/library/scala/Product16.scala8
-rw-r--r--src/library/scala/Product17.scala8
-rw-r--r--src/library/scala/Product18.scala8
-rw-r--r--src/library/scala/Product19.scala8
-rw-r--r--src/library/scala/Product2.scala8
-rw-r--r--src/library/scala/Product20.scala8
-rw-r--r--src/library/scala/Product21.scala8
-rw-r--r--src/library/scala/Product22.scala8
-rw-r--r--src/library/scala/Product3.scala8
-rw-r--r--src/library/scala/Product4.scala8
-rw-r--r--src/library/scala/Product5.scala8
-rw-r--r--src/library/scala/Product6.scala8
-rw-r--r--src/library/scala/Product7.scala8
-rw-r--r--src/library/scala/Product8.scala8
-rw-r--r--src/library/scala/Product9.scala8
-rw-r--r--src/library/scala/Tuple1.scala7
-rw-r--r--src/library/scala/Tuple10.scala7
-rw-r--r--src/library/scala/Tuple11.scala7
-rw-r--r--src/library/scala/Tuple12.scala7
-rw-r--r--src/library/scala/Tuple13.scala7
-rw-r--r--src/library/scala/Tuple14.scala7
-rw-r--r--src/library/scala/Tuple15.scala7
-rw-r--r--src/library/scala/Tuple16.scala7
-rw-r--r--src/library/scala/Tuple17.scala7
-rw-r--r--src/library/scala/Tuple18.scala7
-rw-r--r--src/library/scala/Tuple19.scala7
-rw-r--r--src/library/scala/Tuple2.scala10
-rw-r--r--src/library/scala/Tuple20.scala7
-rw-r--r--src/library/scala/Tuple21.scala7
-rw-r--r--src/library/scala/Tuple22.scala7
-rw-r--r--src/library/scala/Tuple3.scala7
-rw-r--r--src/library/scala/Tuple4.scala7
-rw-r--r--src/library/scala/Tuple5.scala7
-rw-r--r--src/library/scala/Tuple6.scala7
-rw-r--r--src/library/scala/Tuple7.scala7
-rw-r--r--src/library/scala/Tuple8.scala7
-rw-r--r--src/library/scala/Tuple9.scala7
69 files changed, 341 insertions, 155 deletions
diff --git a/src/build/genprod.scala b/src/build/genprod.scala
index f7643e9968..c0c6c9c00d 100644
--- a/src/build/genprod.scala
+++ b/src/build/genprod.scala
@@ -9,15 +9,15 @@
// $Id$
/** <p>
- * This program generates the <code>Product$i</code> classes, where
- * <code>0 &lt;= i &lt;+ MAXWIDTH</code>.
+ * This program generates the <code>ProductN</code>, <code>TupleN</code> <code>FunctionN</code> classes, where
+ * <code>0 &lt;= N &lt;+ MAXWIDTH</code>.
* </p>
* <p>
* usage: <code>scala -classpath ... genprod PATH</code>
* where <code>PATH</code> is the desired output directory
* </p>
*
- * @author Burak Emir, Stephane Micheloud
+ * @author Burak Emir, Stephane Micheloud, Geoffrey Washburn
* @version 1.1
*/
object genprod {
@@ -28,21 +28,14 @@ object genprod {
val SUP_FUNCTION_ARITY = 23
def productClassname(i: Int) = "Product"+i
-
def productFilename(i: Int) = productClassname(i)+".scala"
def tupleClassname(i: Int) = "Tuple"+i
-
def tupleFilename(i: Int) = tupleClassname(i)+".scala"
def functionClassname(i: Int) = "Function"+i
-
def functionFilename(i: Int) = functionClassname(i)+".scala"
- def choiceClassname(i: Int) = "Choice"+i
-
- def choiceFilename(i: Int) = choiceClassname(i)+".scala"
-
def targs(i: Int) =
for (j <- List.range(1, i+1)) yield "T" + j
@@ -154,14 +147,19 @@ trait {functionClassname(i)}{__typeArgs__} extends AnyRef {{
def moreMethods(i:Int) = i match {
case 1 => """
- /** (f compose g)(x) = f(g(x))
+ /** (f compose g)(x) == f(g(x))
*/
def compose[A](g: A => T1): A => R = { x => apply(g(x)) }
- /** (f andThen g)(x) = g(f(x))
+ /** (f andThen g)(x) == g(f(x))
*/
def andThen[A](g: R => A): T1 => A = { x => g(apply(x)) }
"""
+ case 2 => """
+ /** f(x,y) == (f.uncurry)(x)(y)
+ */
+ def uncurry: T1 => T2 => R = { (x:T1) => (y:T2) => apply(x,y) }
+"""
case _ => ""
}
def descriptiveComment(i: Int) = i match {
@@ -241,11 +239,13 @@ object TupleFile {
// {"$Id$"}
-// generated by genprod on {new java.util.Date().toString()}
+// generated by genprod on {new java.util.Date().toString()} {if(descriptiveComment(i).length > 0) "(with fancy comment)" else ""} {if(moreMethods(i).length > 0) "(with extra methods)" else ""}
package scala
-/** {tupleClassname(i)} is the canonical representation of a @see {productClassname(i)} */
+/** {tupleClassname(i)} is the canonical representation of a @see {productClassname(i)}
+ * {descriptiveComment(i)}
+ */
case class {tupleClassname(i)}{__typeArgs__}({ __fields__ })
extends {productClassname(i)}{__typeArgRefs__} {{
@@ -260,9 +260,19 @@ case class {tupleClassname(i)}{__typeArgs__}({ __fields__ })
}
sb.toString
}}
+ {moreMethods(i)}
}}
-</file>
- }
+</file>}
+ def moreMethods(i:Int) = i match {
+ case 2 => """
+ /** Swap the elements of the tuple */
+ def swap: Tuple2[T2,T1] = Tuple2(_2, _1)
+"""
+ case _ => ""
+ }
+ def descriptiveComment(i: Int) = i match {
+ case _ => ""
+ }
} // object TupleFile
@@ -287,7 +297,7 @@ object ProductFile {
// {"$Id$"}
-// generated by genprod on {new java.util.Date().toString()}
+// generated by genprod on {new java.util.Date().toString()} {if(descriptiveComment(i).length > 0) "(with fancy comment)" else ""} {if(moreMethods(i).length > 0) "(with extra methods)" else ""}
package scala
@@ -299,6 +309,7 @@ object {productClassname(i)} {{
}}
/** {productClassname(i)} is a cartesian product of {i} components
+ * {descriptiveComment(i)}
*/
trait {productClassname(i)}{__typeArgs__} extends Product {{
@@ -324,7 +335,14 @@ trait {productClassname(i)}{__typeArgs__} extends Product {{
{for ((m, t) <- mdefs(i) zip targs(i)) yield
"/** projection of this product */\n def " + m + ": " + t + "\n\n" }
+
+ {moreMethods(i)}
}}
-</file>
+</file>}
+ def moreMethods(i:Int) = i match {
+ case _ => ""
}
-}
+ def descriptiveComment(i: Int) = i match {
+ case _ => ""
+ }
+};
diff --git a/src/library/scala/Console.scala b/src/library/scala/Console.scala
index d48a849aef..519fab403d 100644
--- a/src/library/scala/Console.scala
+++ b/src/library/scala/Console.scala
@@ -12,7 +12,7 @@
package scala
import java.io.{BufferedReader, InputStream, InputStreamReader,
- OutputStream, PrintStream, Reader}
+ IOException, OutputStream, PrintStream, Reader}
import java.text.MessageFormat
import scala.util.DynamicVariable
@@ -186,13 +186,15 @@ object Console {
out.printf(text, args.asInstanceOf[scala.runtime.BoxedObjectArray].
unbox(args.getClass).asInstanceOf[Array[Object]])
- /** Read a full line from the terminal.
+ /** Read a full line from the terminal. Returns null if the end of the
+ * input stream has been reached.
*
* @return the string read from the terminal.
*/
def readLine(): String = in.readLine()
- /** Print a formatted text and read a full line from the terminal
+ /** Print a formatted text and read a full line from the terminal.
+ * Returns null if the end of the input stream has been reached.
*
* @param text the format of the text to print out.
* @param args the parameters used to instantiate the format.
diff --git a/src/library/scala/Function0.scala b/src/library/scala/Function0.scala
index e6194e01f1..5370faed3f 100644
--- a/src/library/scala/Function0.scala
+++ b/src/library/scala/Function0.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 (with fancy comment)
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008 (with fancy comment)
package scala
@@ -31,8 +31,8 @@ package scala
* <b>def</b> apply(): Long = System.currentTimeMillis() / 1000L
* }
*
- * Console.println(currentSeconds())
- * Console.println(anonfun0())
+ * println(currentSeconds())
+ * println(anonfun0())
* }</pre>
*/
trait Function0[+R] extends AnyRef {
diff --git a/src/library/scala/Function1.scala b/src/library/scala/Function1.scala
index 3909fda336..edeee899de 100644
--- a/src/library/scala/Function1.scala
+++ b/src/library/scala/Function1.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 (with fancy comment) (with extra methods)
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008 (with fancy comment) (with extra methods)
package scala
@@ -31,19 +31,19 @@ package scala
* <b>def</b> apply(x: Int): Int = x + 1
* }
*
- * Console.println(succ(0))
- * Console.println(anonfun1(0))
+ * println(succ(0))
+ * println(anonfun1(0))
* }</pre>
*/
trait Function1[-T1, +R] extends AnyRef {
def apply(v1:T1): R
override def toString() = "<function>"
- /** (f compose g)(x) = f(g(x))
+ /** (f compose g)(x) == f(g(x))
*/
def compose[A](g: A => T1): A => R = { x => apply(g(x)) }
- /** (f andThen g)(x) = g(f(x))
+ /** (f andThen g)(x) == g(f(x))
*/
def andThen[A](g: R => A): T1 => A = { x => g(apply(x)) }
diff --git a/src/library/scala/Function10.scala b/src/library/scala/Function10.scala
index a4897812d3..2d6d4514a0 100644
--- a/src/library/scala/Function10.scala
+++ b/src/library/scala/Function10.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function11.scala b/src/library/scala/Function11.scala
index af12ca7d0e..350de21bc6 100644
--- a/src/library/scala/Function11.scala
+++ b/src/library/scala/Function11.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function12.scala b/src/library/scala/Function12.scala
index fcea295d1b..d5c9d9c3df 100644
--- a/src/library/scala/Function12.scala
+++ b/src/library/scala/Function12.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function13.scala b/src/library/scala/Function13.scala
index fe684892de..05e29e7a3a 100644
--- a/src/library/scala/Function13.scala
+++ b/src/library/scala/Function13.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function14.scala b/src/library/scala/Function14.scala
index bcee636efc..53a130d753 100644
--- a/src/library/scala/Function14.scala
+++ b/src/library/scala/Function14.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function15.scala b/src/library/scala/Function15.scala
index 1edf583493..2d3f5ce26a 100644
--- a/src/library/scala/Function15.scala
+++ b/src/library/scala/Function15.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function16.scala b/src/library/scala/Function16.scala
index 6454de4bd0..786a270e45 100644
--- a/src/library/scala/Function16.scala
+++ b/src/library/scala/Function16.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function17.scala b/src/library/scala/Function17.scala
index c05f9347d9..f00dff4767 100644
--- a/src/library/scala/Function17.scala
+++ b/src/library/scala/Function17.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function18.scala b/src/library/scala/Function18.scala
index 4b196ca961..8b89119814 100644
--- a/src/library/scala/Function18.scala
+++ b/src/library/scala/Function18.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function19.scala b/src/library/scala/Function19.scala
index 851f07e565..715a0a41e6 100644
--- a/src/library/scala/Function19.scala
+++ b/src/library/scala/Function19.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function2.scala b/src/library/scala/Function2.scala
index 17d2756dfc..3f6f5bf178 100644
--- a/src/library/scala/Function2.scala
+++ b/src/library/scala/Function2.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 (with fancy comment)
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008 (with fancy comment) (with extra methods)
package scala
@@ -31,12 +31,16 @@ package scala
* <b>def</b> apply(x: Int, y: Int): Int = <b>if</b> (x < y) y <b>else</b> x
* }
*
- * Console.println(max(0, 1))
- * Console.println(anonfun2(0, 1))
+ * println(max(0, 1))
+ * println(anonfun2(0, 1))
* }</pre>
*/
trait Function2[-T1, -T2, +R] extends AnyRef {
def apply(v1:T1, v2:T2): R
override def toString() = "<function>"
+ /** f(x,y) == (f.uncurry)(x)(y)
+ */
+ def uncurry: T1 => T2 => R = { (x:T1) => (y:T2) => apply(x,y) }
+
}
diff --git a/src/library/scala/Function20.scala b/src/library/scala/Function20.scala
index 8239627b7b..65056c333f 100644
--- a/src/library/scala/Function20.scala
+++ b/src/library/scala/Function20.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function21.scala b/src/library/scala/Function21.scala
index 73493700a9..648358b43a 100644
--- a/src/library/scala/Function21.scala
+++ b/src/library/scala/Function21.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function22.scala b/src/library/scala/Function22.scala
index 44fd79acce..b8b5ea05e8 100644
--- a/src/library/scala/Function22.scala
+++ b/src/library/scala/Function22.scala
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Tue Feb 19 17:26:58 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
diff --git a/src/library/scala/Function3.scala b/src/library/scala/Function3.scala
index d9ea29d31d..1386c74b34 100644
--- a/src/library/scala/Function3.scala
+++ b/src/library/scala/Function3.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
diff --git a/src/library/scala/Function4.scala b/src/library/scala/Function4.scala
index 41751da2b9..e2ccc2c996 100644
--- a/src/library/scala/Function4.scala
+++ b/src/library/scala/Function4.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
diff --git a/src/library/scala/Function5.scala b/src/library/scala/Function5.scala
index 26258b2747..8ad309b13d 100644
--- a/src/library/scala/Function5.scala
+++ b/src/library/scala/Function5.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
diff --git a/src/library/scala/Function6.scala b/src/library/scala/Function6.scala
index f48fa00b21..708517672a 100644
--- a/src/library/scala/Function6.scala
+++ b/src/library/scala/Function6.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
diff --git a/src/library/scala/Function7.scala b/src/library/scala/Function7.scala
index c15734732a..16265aa9fa 100644
--- a/src/library/scala/Function7.scala
+++ b/src/library/scala/Function7.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
diff --git a/src/library/scala/Function8.scala b/src/library/scala/Function8.scala
index 378d5f4cca..94dbbd7f96 100644
--- a/src/library/scala/Function8.scala
+++ b/src/library/scala/Function8.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
diff --git a/src/library/scala/Function9.scala b/src/library/scala/Function9.scala
index bbac15ce5e..d8075bddc8 100644
--- a/src/library/scala/Function9.scala
+++ b/src/library/scala/Function9.scala
@@ -1,21 +1,26 @@
+
/* __ *\
** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
+** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/**
- * Function with 9 parameters
+/** <p>
+ * Function with 9 parameters.
+ * </p>
+ *
*/
-trait Function9[-T0, -T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, +R] extends AnyRef {
- def apply(v0: T0, v1: T1, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6, v7: T7, v8: T8): R
+trait Function9[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, +R] extends AnyRef {
+ def apply(v1:T1, v2:T2, v3:T3, v4:T4, v5:T5, v6:T6, v7:T7, v8:T8, v9:T9): R
override def toString() = "<function>"
+
}
diff --git a/src/library/scala/Product1.scala b/src/library/scala/Product1.scala
index 455a3cba12..3fa9e45d4c 100644
--- a/src/library/scala/Product1.scala
+++ b/src/library/scala/Product1.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 Product1 {
}
/** Product1 is a cartesian product of 1 components
+ *
*/
trait Product1[+T1] extends Product {
@@ -38,6 +39,7 @@ trait Product1[+T1] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case _ => throw new IndexOutOfBoundsException(n.toString())
@@ -47,4 +49,6 @@ trait Product1[+T1] extends Product {
def _1: T1
+
+
}
diff --git a/src/library/scala/Product10.scala b/src/library/scala/Product10.scala
index d9d21b4e0a..75e54dae48 100644
--- a/src/library/scala/Product10.scala
+++ b/src/library/scala/Product10.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 Product10 {
}
/** Product10 is a cartesian product of 10 components
+ *
*/
trait Product10[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10] extends Product {
@@ -38,6 +39,7 @@ trait Product10[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10] extends Produ
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -83,4 +85,6 @@ trait Product10[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10] extends Produ
def _10: T10
+
+
}
diff --git a/src/library/scala/Product11.scala b/src/library/scala/Product11.scala
index f865e9b70d..c66ed297cb 100644
--- a/src/library/scala/Product11.scala
+++ b/src/library/scala/Product11.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 Product11 {
}
/** Product11 is a cartesian product of 11 components
+ *
*/
trait Product11[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11] extends Product {
@@ -38,6 +39,7 @@ trait Product11[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11] extends
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -87,4 +89,6 @@ trait Product11[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11] extends
def _11: T11
+
+
}
diff --git a/src/library/scala/Product12.scala b/src/library/scala/Product12.scala
index c51746d2ba..922837124a 100644
--- a/src/library/scala/Product12.scala
+++ b/src/library/scala/Product12.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 Product12 {
}
/** Product12 is a cartesian product of 12 components
+ *
*/
trait Product12[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12] extends Product {
@@ -38,6 +39,7 @@ trait Product12[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12] e
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -91,4 +93,6 @@ trait Product12[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12] e
def _12: T12
+
+
}
diff --git a/src/library/scala/Product13.scala b/src/library/scala/Product13.scala
index fc5022eb60..196d29d7bf 100644
--- a/src/library/scala/Product13.scala
+++ b/src/library/scala/Product13.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 Product13 {
}
/** Product13 is a cartesian product of 13 components
+ *
*/
trait Product13[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13] extends Product {
@@ -38,6 +39,7 @@ trait Product13[+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
@@ -95,4 +97,6 @@ trait Product13[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _13: T13
+
+
}
diff --git a/src/library/scala/Product14.scala b/src/library/scala/Product14.scala
index 5c201201a2..e1bc0b72d3 100644
--- a/src/library/scala/Product14.scala
+++ b/src/library/scala/Product14.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 Product14 {
}
/** Product14 is a cartesian product of 14 components
+ *
*/
trait Product14[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14] extends Product {
@@ -38,6 +39,7 @@ trait Product14[+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
@@ -99,4 +101,6 @@ trait Product14[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _14: T14
+
+
}
diff --git a/src/library/scala/Product15.scala b/src/library/scala/Product15.scala
index b16831afe0..d25a662505 100644
--- a/src/library/scala/Product15.scala
+++ b/src/library/scala/Product15.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 Product15 {
}
/** Product15 is a cartesian product of 15 components
+ *
*/
trait Product15[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15] extends Product {
@@ -38,6 +39,7 @@ trait Product15[+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
@@ -103,4 +105,6 @@ trait Product15[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _15: T15
+
+
}
diff --git a/src/library/scala/Product16.scala b/src/library/scala/Product16.scala
index ac117877f2..905166002d 100644
--- a/src/library/scala/Product16.scala
+++ b/src/library/scala/Product16.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 Product16 {
}
/** Product16 is a cartesian product of 16 components
+ *
*/
trait Product16[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16] extends Product {
@@ -38,6 +39,7 @@ trait Product16[+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
@@ -107,4 +109,6 @@ trait Product16[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _16: T16
+
+
}
diff --git a/src/library/scala/Product17.scala b/src/library/scala/Product17.scala
index c5b0b07fe9..9ba722fc78 100644
--- a/src/library/scala/Product17.scala
+++ b/src/library/scala/Product17.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 Product17 {
}
/** Product17 is a cartesian product of 17 components
+ *
*/
trait Product17[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17] extends Product {
@@ -38,6 +39,7 @@ trait Product17[+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
@@ -111,4 +113,6 @@ trait Product17[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _17: T17
+
+
}
diff --git a/src/library/scala/Product18.scala b/src/library/scala/Product18.scala
index 49885f66a0..37a70685b1 100644
--- a/src/library/scala/Product18.scala
+++ b/src/library/scala/Product18.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 Product18 {
}
/** Product18 is a cartesian product of 18 components
+ *
*/
trait Product18[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18] extends Product {
@@ -38,6 +39,7 @@ trait Product18[+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
@@ -115,4 +117,6 @@ trait Product18[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _18: T18
+
+
}
diff --git a/src/library/scala/Product19.scala b/src/library/scala/Product19.scala
index 9f90a5b2b2..c3d72b84dd 100644
--- a/src/library/scala/Product19.scala
+++ b/src/library/scala/Product19.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 Product19 {
}
/** Product19 is a cartesian product of 19 components
+ *
*/
trait Product19[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19] extends Product {
@@ -38,6 +39,7 @@ trait Product19[+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
@@ -119,4 +121,6 @@ trait Product19[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _19: T19
+
+
}
diff --git a/src/library/scala/Product2.scala b/src/library/scala/Product2.scala
index 1fba2c9490..09c22fc284 100644
--- a/src/library/scala/Product2.scala
+++ b/src/library/scala/Product2.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 Product2 {
}
/** Product2 is a cartesian product of 2 components
+ *
*/
trait Product2[+T1, +T2] extends Product {
@@ -38,6 +39,7 @@ trait Product2[+T1, +T2] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -51,4 +53,6 @@ trait Product2[+T1, +T2] extends Product {
def _2: T2
+
+
}
diff --git a/src/library/scala/Product20.scala b/src/library/scala/Product20.scala
index 5046a77e88..9ea46825cb 100644
--- a/src/library/scala/Product20.scala
+++ b/src/library/scala/Product20.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 Product20 {
}
/** Product20 is a cartesian product of 20 components
+ *
*/
trait Product20[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19, +T20] extends Product {
@@ -38,6 +39,7 @@ trait Product20[+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
@@ -123,4 +125,6 @@ trait Product20[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _20: T20
+
+
}
diff --git a/src/library/scala/Product21.scala b/src/library/scala/Product21.scala
index 83bf305237..af71f14908 100644
--- a/src/library/scala/Product21.scala
+++ b/src/library/scala/Product21.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 Product21 {
}
/** Product21 is a cartesian product of 21 components
+ *
*/
trait Product21[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19, +T20, +T21] extends Product {
@@ -38,6 +39,7 @@ trait Product21[+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
@@ -127,4 +129,6 @@ trait Product21[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +
def _21: T21
+
+
}
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
+
+
}
diff --git a/src/library/scala/Product3.scala b/src/library/scala/Product3.scala
index 9da9396c6c..72a629d0df 100644
--- a/src/library/scala/Product3.scala
+++ b/src/library/scala/Product3.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 Product3 {
}
/** Product3 is a cartesian product of 3 components
+ *
*/
trait Product3[+T1, +T2, +T3] extends Product {
@@ -38,6 +39,7 @@ trait Product3[+T1, +T2, +T3] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -55,4 +57,6 @@ trait Product3[+T1, +T2, +T3] extends Product {
def _3: T3
+
+
}
diff --git a/src/library/scala/Product4.scala b/src/library/scala/Product4.scala
index b6aba5164b..73565d9acd 100644
--- a/src/library/scala/Product4.scala
+++ b/src/library/scala/Product4.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 Product4 {
}
/** Product4 is a cartesian product of 4 components
+ *
*/
trait Product4[+T1, +T2, +T3, +T4] extends Product {
@@ -38,6 +39,7 @@ trait Product4[+T1, +T2, +T3, +T4] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -59,4 +61,6 @@ trait Product4[+T1, +T2, +T3, +T4] extends Product {
def _4: T4
+
+
}
diff --git a/src/library/scala/Product5.scala b/src/library/scala/Product5.scala
index 2e1447897f..682e6babea 100644
--- a/src/library/scala/Product5.scala
+++ b/src/library/scala/Product5.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 Product5 {
}
/** Product5 is a cartesian product of 5 components
+ *
*/
trait Product5[+T1, +T2, +T3, +T4, +T5] extends Product {
@@ -38,6 +39,7 @@ trait Product5[+T1, +T2, +T3, +T4, +T5] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -63,4 +65,6 @@ trait Product5[+T1, +T2, +T3, +T4, +T5] extends Product {
def _5: T5
+
+
}
diff --git a/src/library/scala/Product6.scala b/src/library/scala/Product6.scala
index eb1210a932..5cd0acb09c 100644
--- a/src/library/scala/Product6.scala
+++ b/src/library/scala/Product6.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 Product6 {
}
/** Product6 is a cartesian product of 6 components
+ *
*/
trait Product6[+T1, +T2, +T3, +T4, +T5, +T6] extends Product {
@@ -38,6 +39,7 @@ trait Product6[+T1, +T2, +T3, +T4, +T5, +T6] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -67,4 +69,6 @@ trait Product6[+T1, +T2, +T3, +T4, +T5, +T6] extends Product {
def _6: T6
+
+
}
diff --git a/src/library/scala/Product7.scala b/src/library/scala/Product7.scala
index cc6608a3dd..75a3e568d1 100644
--- a/src/library/scala/Product7.scala
+++ b/src/library/scala/Product7.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 Product7 {
}
/** Product7 is a cartesian product of 7 components
+ *
*/
trait Product7[+T1, +T2, +T3, +T4, +T5, +T6, +T7] extends Product {
@@ -38,6 +39,7 @@ trait Product7[+T1, +T2, +T3, +T4, +T5, +T6, +T7] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -71,4 +73,6 @@ trait Product7[+T1, +T2, +T3, +T4, +T5, +T6, +T7] extends Product {
def _7: T7
+
+
}
diff --git a/src/library/scala/Product8.scala b/src/library/scala/Product8.scala
index 2abf92169e..57839fb4b9 100644
--- a/src/library/scala/Product8.scala
+++ b/src/library/scala/Product8.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 Product8 {
}
/** Product8 is a cartesian product of 8 components
+ *
*/
trait Product8[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8] extends Product {
@@ -38,6 +39,7 @@ trait Product8[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -75,4 +77,6 @@ trait Product8[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8] extends Product {
def _8: T8
+
+
}
diff --git a/src/library/scala/Product9.scala b/src/library/scala/Product9.scala
index c8880e4820..885611d8cc 100644
--- a/src/library/scala/Product9.scala
+++ b/src/library/scala/Product9.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 Product9 {
}
/** Product9 is a cartesian product of 9 components
+ *
*/
trait Product9[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9] extends Product {
@@ -38,6 +39,7 @@ trait Product9[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case 1 => _2
@@ -79,4 +81,6 @@ trait Product9[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9] extends Product {
def _9: T9
+
+
}
diff --git a/src/library/scala/Tuple1.scala b/src/library/scala/Tuple1.scala
index f03691131c..e30e96e814 100644
--- a/src/library/scala/Tuple1.scala
+++ b/src/library/scala/Tuple1.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple1 is the canonical representation of a @see Product1 */
+/** Tuple1 is the canonical representation of a @see Product1
+ *
+ */
case class Tuple1[+T1](_1:T1)
extends Product1[T1] {
@@ -22,4 +24,5 @@ case class Tuple1[+T1](_1:T1)
sb.append('(').append(_1).append(",)")
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple10.scala b/src/library/scala/Tuple10.scala
index 3569950cbd..ecfa885dd9 100644
--- a/src/library/scala/Tuple10.scala
+++ b/src/library/scala/Tuple10.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple10 is the canonical representation of a @see Product10 */
+/** Tuple10 is the canonical representation of a @see Product10
+ *
+ */
case class Tuple10[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10)
extends Product10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10] {
@@ -22,4 +24,5 @@ case class Tuple10[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10](_1:T1, _2:
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple11.scala b/src/library/scala/Tuple11.scala
index d6edd8ce27..9b1d457d90 100644
--- a/src/library/scala/Tuple11.scala
+++ b/src/library/scala/Tuple11.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple11 is the canonical representation of a @see Product11 */
+/** Tuple11 is the canonical representation of a @see Product11
+ *
+ */
case class Tuple11[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11)
extends Product11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11] {
@@ -22,4 +24,5 @@ case class Tuple11[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11](_1:T
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple12.scala b/src/library/scala/Tuple12.scala
index 9523396f07..cbcdd59891 100644
--- a/src/library/scala/Tuple12.scala
+++ b/src/library/scala/Tuple12.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple12 is the canonical representation of a @see Product12 */
+/** Tuple12 is the canonical representation of a @see Product12
+ *
+ */
case class Tuple12[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12)
extends Product12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12] {
@@ -22,4 +24,5 @@ case class Tuple12[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple13.scala b/src/library/scala/Tuple13.scala
index 7eb4cf0358..77bd56413e 100644
--- a/src/library/scala/Tuple13.scala
+++ b/src/library/scala/Tuple13.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple13 is the canonical representation of a @see Product13 */
+/** Tuple13 is the canonical representation of a @see Product13
+ *
+ */
case class Tuple13[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13)
extends Product13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13] {
@@ -22,4 +24,5 @@ case class Tuple13[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple14.scala b/src/library/scala/Tuple14.scala
index 1c419dadf9..28d3113df0 100644
--- a/src/library/scala/Tuple14.scala
+++ b/src/library/scala/Tuple14.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple14 is the canonical representation of a @see Product14 */
+/** Tuple14 is the canonical representation of a @see Product14
+ *
+ */
case class Tuple14[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14)
extends Product14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14] {
@@ -22,4 +24,5 @@ case class Tuple14[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple15.scala b/src/library/scala/Tuple15.scala
index b372e941a1..00a06c265b 100644
--- a/src/library/scala/Tuple15.scala
+++ b/src/library/scala/Tuple15.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple15 is the canonical representation of a @see Product15 */
+/** Tuple15 is the canonical representation of a @see Product15
+ *
+ */
case class Tuple15[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15)
extends Product15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15] {
@@ -22,4 +24,5 @@ case class Tuple15[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple16.scala b/src/library/scala/Tuple16.scala
index 0ca9fcf1d1..44b9d97378 100644
--- a/src/library/scala/Tuple16.scala
+++ b/src/library/scala/Tuple16.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple16 is the canonical representation of a @see Product16 */
+/** Tuple16 is the canonical representation of a @see Product16
+ *
+ */
case class Tuple16[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15, _16:T16)
extends Product16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16] {
@@ -22,4 +24,5 @@ case class Tuple16[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(',').append(_16).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple17.scala b/src/library/scala/Tuple17.scala
index 028f2c2311..e6f285e319 100644
--- a/src/library/scala/Tuple17.scala
+++ b/src/library/scala/Tuple17.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple17 is the canonical representation of a @see Product17 */
+/** Tuple17 is the canonical representation of a @see Product17
+ *
+ */
case class Tuple17[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15, _16:T16, _17:T17)
extends Product17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17] {
@@ -22,4 +24,5 @@ case class Tuple17[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(',').append(_16).append(',').append(_17).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple18.scala b/src/library/scala/Tuple18.scala
index ad70404c71..285cf5e8af 100644
--- a/src/library/scala/Tuple18.scala
+++ b/src/library/scala/Tuple18.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple18 is the canonical representation of a @see Product18 */
+/** Tuple18 is the canonical representation of a @see Product18
+ *
+ */
case class Tuple18[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15, _16:T16, _17:T17, _18:T18)
extends Product18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18] {
@@ -22,4 +24,5 @@ case class Tuple18[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(',').append(_16).append(',').append(_17).append(',').append(_18).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple19.scala b/src/library/scala/Tuple19.scala
index 27d0827f50..ee070e2bcf 100644
--- a/src/library/scala/Tuple19.scala
+++ b/src/library/scala/Tuple19.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple19 is the canonical representation of a @see Product19 */
+/** Tuple19 is the canonical representation of a @see Product19
+ *
+ */
case class Tuple19[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15, _16:T16, _17:T17, _18:T18, _19:T19)
extends Product19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] {
@@ -22,4 +24,5 @@ case class Tuple19[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(',').append(_16).append(',').append(_17).append(',').append(_18).append(',').append(_19).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple2.scala b/src/library/scala/Tuple2.scala
index 57a36e02f6..a69fd6720e 100644
--- a/src/library/scala/Tuple2.scala
+++ b/src/library/scala/Tuple2.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008 (with extra methods)
package scala
-/** Tuple2 is the canonical representation of a @see Product2 */
+/** Tuple2 is the canonical representation of a @see Product2
+ *
+ */
case class Tuple2[+T1, +T2](_1:T1, _2:T2)
extends Product2[T1, T2] {
@@ -22,4 +24,8 @@ case class Tuple2[+T1, +T2](_1:T1, _2:T2)
sb.append('(').append(_1).append(',').append(_2).append(')')
sb.toString
}
+
+ /** Swap the elements of the tuple */
+ def swap: Tuple2[T2,T1] = Tuple2(_2, _1)
+
}
diff --git a/src/library/scala/Tuple20.scala b/src/library/scala/Tuple20.scala
index 00ae8bc04f..4168de0eee 100644
--- a/src/library/scala/Tuple20.scala
+++ b/src/library/scala/Tuple20.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple20 is the canonical representation of a @see Product20 */
+/** Tuple20 is the canonical representation of a @see Product20
+ *
+ */
case class Tuple20[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19, +T20](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15, _16:T16, _17:T17, _18:T18, _19:T19, _20:T20)
extends Product20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20] {
@@ -22,4 +24,5 @@ case class Tuple20[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(',').append(_16).append(',').append(_17).append(',').append(_18).append(',').append(_19).append(',').append(_20).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple21.scala b/src/library/scala/Tuple21.scala
index faf12d0c17..cb8f198ff0 100644
--- a/src/library/scala/Tuple21.scala
+++ b/src/library/scala/Tuple21.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple21 is the canonical representation of a @see Product21 */
+/** Tuple21 is the canonical representation of a @see Product21
+ *
+ */
case class Tuple21[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19, +T20, +T21](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15, _16:T16, _17:T17, _18:T18, _19:T19, _20:T20, _21:T21)
extends Product21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21] {
@@ -22,4 +24,5 @@ case class Tuple21[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(',').append(_16).append(',').append(_17).append(',').append(_18).append(',').append(_19).append(',').append(_20).append(',').append(_21).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple22.scala b/src/library/scala/Tuple22.scala
index 4799002699..5fe87d65cc 100644
--- a/src/library/scala/Tuple22.scala
+++ b/src/library/scala/Tuple22.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple22 is the canonical representation of a @see Product22 */
+/** Tuple22 is the canonical representation of a @see Product22
+ *
+ */
case class Tuple22[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19, +T20, +T21, +T22](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9, _10:T10, _11:T11, _12:T12, _13:T13, _14:T14, _15:T15, _16:T16, _17:T17, _18:T18, _19:T19, _20:T20, _21:T21, _22:T22)
extends Product22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22] {
@@ -22,4 +24,5 @@ case class Tuple22[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(',').append(_10).append(',').append(_11).append(',').append(_12).append(',').append(_13).append(',').append(_14).append(',').append(_15).append(',').append(_16).append(',').append(_17).append(',').append(_18).append(',').append(_19).append(',').append(_20).append(',').append(_21).append(',').append(_22).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple3.scala b/src/library/scala/Tuple3.scala
index f1828f7e52..3671d766b2 100644
--- a/src/library/scala/Tuple3.scala
+++ b/src/library/scala/Tuple3.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple3 is the canonical representation of a @see Product3 */
+/** Tuple3 is the canonical representation of a @see Product3
+ *
+ */
case class Tuple3[+T1, +T2, +T3](_1:T1, _2:T2, _3:T3)
extends Product3[T1, T2, T3] {
@@ -22,4 +24,5 @@ case class Tuple3[+T1, +T2, +T3](_1:T1, _2:T2, _3:T3)
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple4.scala b/src/library/scala/Tuple4.scala
index f93051d1a6..f26f6d346b 100644
--- a/src/library/scala/Tuple4.scala
+++ b/src/library/scala/Tuple4.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple4 is the canonical representation of a @see Product4 */
+/** Tuple4 is the canonical representation of a @see Product4
+ *
+ */
case class Tuple4[+T1, +T2, +T3, +T4](_1:T1, _2:T2, _3:T3, _4:T4)
extends Product4[T1, T2, T3, T4] {
@@ -22,4 +24,5 @@ case class Tuple4[+T1, +T2, +T3, +T4](_1:T1, _2:T2, _3:T3, _4:T4)
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple5.scala b/src/library/scala/Tuple5.scala
index 4537980e57..0586df8417 100644
--- a/src/library/scala/Tuple5.scala
+++ b/src/library/scala/Tuple5.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple5 is the canonical representation of a @see Product5 */
+/** Tuple5 is the canonical representation of a @see Product5
+ *
+ */
case class Tuple5[+T1, +T2, +T3, +T4, +T5](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5)
extends Product5[T1, T2, T3, T4, T5] {
@@ -22,4 +24,5 @@ case class Tuple5[+T1, +T2, +T3, +T4, +T5](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5)
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple6.scala b/src/library/scala/Tuple6.scala
index 6ab36c7fc8..ec1d3a6318 100644
--- a/src/library/scala/Tuple6.scala
+++ b/src/library/scala/Tuple6.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple6 is the canonical representation of a @see Product6 */
+/** Tuple6 is the canonical representation of a @see Product6
+ *
+ */
case class Tuple6[+T1, +T2, +T3, +T4, +T5, +T6](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6)
extends Product6[T1, T2, T3, T4, T5, T6] {
@@ -22,4 +24,5 @@ case class Tuple6[+T1, +T2, +T3, +T4, +T5, +T6](_1:T1, _2:T2, _3:T3, _4:T4, _5:T
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple7.scala b/src/library/scala/Tuple7.scala
index 427c46998f..02a1202bc4 100644
--- a/src/library/scala/Tuple7.scala
+++ b/src/library/scala/Tuple7.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple7 is the canonical representation of a @see Product7 */
+/** Tuple7 is the canonical representation of a @see Product7
+ *
+ */
case class Tuple7[+T1, +T2, +T3, +T4, +T5, +T6, +T7](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7)
extends Product7[T1, T2, T3, T4, T5, T6, T7] {
@@ -22,4 +24,5 @@ case class Tuple7[+T1, +T2, +T3, +T4, +T5, +T6, +T7](_1:T1, _2:T2, _3:T3, _4:T4,
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple8.scala b/src/library/scala/Tuple8.scala
index 6caddb40d4..b4f709f2fd 100644
--- a/src/library/scala/Tuple8.scala
+++ b/src/library/scala/Tuple8.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple8 is the canonical representation of a @see Product8 */
+/** Tuple8 is the canonical representation of a @see Product8
+ *
+ */
case class Tuple8[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8)
extends Product8[T1, T2, T3, T4, T5, T6, T7, T8] {
@@ -22,4 +24,5 @@ case class Tuple8[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8](_1:T1, _2:T2, _3:T3, _
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(')')
sb.toString
}
+
}
diff --git a/src/library/scala/Tuple9.scala b/src/library/scala/Tuple9.scala
index bf340c7e5c..4e7ff2d169 100644
--- a/src/library/scala/Tuple9.scala
+++ b/src/library/scala/Tuple9.scala
@@ -9,11 +9,13 @@
// $Id$
-// generated by genprod on Tue Feb 05 21:30:06 CET 2008
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
-/** Tuple9 is the canonical representation of a @see Product9 */
+/** Tuple9 is the canonical representation of a @see Product9
+ *
+ */
case class Tuple9[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7, _8:T8, _9:T9)
extends Product9[T1, T2, T3, T4, T5, T6, T7, T8, T9] {
@@ -22,4 +24,5 @@ case class Tuple9[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9](_1:T1, _2:T2, _3:
sb.append('(').append(_1).append(',').append(_2).append(',').append(_3).append(',').append(_4).append(',').append(_5).append(',').append(_6).append(',').append(_7).append(',').append(_8).append(',').append(_9).append(')')
sb.toString
}
+
}