diff options
author | michelou <michelou@epfl.ch> | 2006-12-08 19:10:22 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-12-08 19:10:22 +0000 |
commit | 1e5fd9b56a92dc162ce28346b0a705e8940f58d9 (patch) | |
tree | a9d180c01e2c44bdc7bb7d8104881c523e45706d /src | |
parent | cb3adcfb6d0023da523c6a9f04dc8b7b5555e85c (diff) | |
download | scala-1e5fd9b56a92dc162ce28346b0a705e8940f58d9.tar.gz scala-1e5fd9b56a92dc162ce28346b0a705e8940f58d9.tar.bz2 scala-1e5fd9b56a92dc162ce28346b0a705e8940f58d9.zip |
updated genprod.scala (Function1)
Diffstat (limited to 'src')
41 files changed, 456 insertions, 288 deletions
diff --git a/src/build/genprod.scala b/src/build/genprod.scala index c0ca4df0d8..ad38418e1b 100644 --- a/src/build/genprod.scala +++ b/src/build/genprod.scala @@ -129,8 +129,10 @@ object FunctionFile { package scala -/** - * Function with {i} parameters. {descriptiveComment(i)} +/** <p> + * Function with {i} parameters. + * </p> + * {descriptiveComment(i)} */ trait {functionClassname(i)}{__typeArgs__} extends AnyRef {{ def apply({__funArgs__}): R @@ -142,57 +144,68 @@ trait {functionClassname(i)}{__typeArgs__} extends AnyRef {{ def moreMethods(i:Int) = i match { case 1 => """ + /** (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)) + */ def andThen[A](g: R => A): T1 => A = { x => g(apply(x)) } """ case _ => "" } def descriptiveComment(i: Int) = i match { - case 0 => """In the following example the definition of - * <code>currentSeconds</code> is a shorthand for the anonymous class - * definition <code>anonfun0</code>: - * <pre> - * <b>object</b> Main <b>extends</b> Application { + case 0 => """<p> + In the following example the definition of + * <code>currentSeconds</code> is a shorthand for the anonymous class + * definition <code>anonfun0</code>: + * </p> + * <pre> + * <b>object</b> Main <b>extends</b> Application { * - * <b>val</b> currentSeconds = () => System.currentTimeMillis() / 1000L + * <b>val</b> currentSeconds = () => System.currentTimeMillis() / 1000L * - * <b>val</b> anonfun0 = <b>new</b> Function0[Long] { - * <b>def</b> apply(): Long = System.currentTimeMillis() / 1000L - * } + * <b>val</b> anonfun0 = <b>new</b> Function0[Long] { + * <b>def</b> apply(): Long = System.currentTimeMillis() / 1000L + * } * - * Console.println(currentSeconds()) - * Console.println(anonfun0()) - * }</pre>""" - case 1 => """In the following example the definition of - * <code>succ</code> is a shorthand for the anonymous class definition - * <code>anonfun1</code>: - * <pre> - * <b>object</b> Main <b>extends</b> Application { + * Console.println(currentSeconds()) + * Console.println(anonfun0()) + * }</pre>""" + case 1 => """<p> + In the following example the definition of + * <code>succ</code> is a shorthand for the anonymous class definition + * <code>anonfun1</code>: + * </p> + * <pre> + * <b>object</b> Main <b>extends</b> Application { * - * <b>val</b> succ = (x: Int) => x + 1 + * <b>val</b> succ = (x: Int) => x + 1 * - * <b>val</b> anonfun1 = <b>new</b> Function1[Int, Int] { - * <b>def</b> apply(x: Int): Int = x + 1 - * } + * <b>val</b> anonfun1 = <b>new</b> Function1[Int, Int] { + * <b>def</b> apply(x: Int): Int = x + 1 + * } * - * Console.println(succ(0)) - * Console.println(anonfun1(0)) - * }</pre>""" - case 2 => """In the following example the definition of - * <code>max</code> is a shorthand for the anonymous class definition - * <code>anonfun2</code>: - * <pre> - * <b>object</b> Main <b>extends</b> Application { + * Console.println(succ(0)) + * Console.println(anonfun1(0)) + * }</pre>""" + case 2 => """<p> + In the following example the definition of + * <code>max</code> is a shorthand for the anonymous class definition + * <code>anonfun2</code>: + * </p> + * <pre> + * <b>object</b> Main <b>extends</b> Application { * - * <b>val</b> max = (x: Int, y: Int) => <b>if</b> (x < y) y <b>else</b> x + * <b>val</b> max = (x: Int, y: Int) => <b>if</b> (x < y) y <b>else</b> x * - * <b>val</b> anonfun2 = <b>new</b> Function2[Int, Int, Int] { - * <b>def</b> apply(x: Int, y: Int): Int = <b>if</b> (x < y) y <b>else</b> x - * } + * <b>val</b> anonfun2 = <b>new</b> Function2[Int, Int, Int] { + * <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)) - * }</pre>""" + * Console.println(max(0, 1)) + * Console.println(anonfun2(0, 1)) + * }</pre>""" case _ => "" } diff --git a/src/library/scala/Function0.scala b/src/library/scala/Function0.scala index 38edc7e252..6df832769e 100644 --- a/src/library/scala/Function0.scala +++ b/src/library/scala/Function0.scala @@ -1,36 +1,41 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 (with fancy comment) // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 (with fancy comment) + package scala -/** - * Function with 0 parameters. In the following example the definition of - * <code>currentSeconds</code> is a shorthand for the anonymous class - * definition <code>anonfun0</code>: - * <pre> - * <b>object</b> Main <b>extends</b> Application { +/** <p> + * Function with 0 parameters. + * </p> + * <p> + In the following example the definition of + * <code>currentSeconds</code> is a shorthand for the anonymous class + * definition <code>anonfun0</code>: + * </p> + * <pre> + * <b>object</b> Main <b>extends</b> Application { * - * <b>val</b> currentSeconds = () => System.currentTimeMillis() / 1000L + * <b>val</b> currentSeconds = () => System.currentTimeMillis() / 1000L * - * <b>val</b> anonfun0 = <b>new</b> Function0[Long] { - * <b>def</b> apply(): Long = System.currentTimeMillis() / 1000L - * } + * <b>val</b> anonfun0 = <b>new</b> Function0[Long] { + * <b>def</b> apply(): Long = System.currentTimeMillis() / 1000L + * } * - * Console.println(currentSeconds()) - * Console.println(anonfun0()) - * }</pre> + * Console.println(currentSeconds()) + * Console.println(anonfun0()) + * }</pre> */ -trait Function0 [+R] extends AnyRef { +trait Function0[+R] extends AnyRef { def apply(): R override def toString() = "<function>" diff --git a/src/library/scala/Function1.scala b/src/library/scala/Function1.scala index 68cf8f3ad4..4fb3a4aa9d 100644 --- a/src/library/scala/Function1.scala +++ b/src/library/scala/Function1.scala @@ -1,39 +1,42 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 (with fancy comment) (with extra methods) // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 (with fancy comment) (with extra methods) + package scala -/** - * Function with 1 parameters. In the following example the definition of - * <code>succ</code> is a shorthand for the anonymous class definition - * <code>anonfun1</code>: - * <pre> - * <b>object</b> Main <b>extends</b> Application { +/** <p> + * Function with 1 parameters. + * </p> + * <p> + In the following example the definition of + * <code>succ</code> is a shorthand for the anonymous class definition + * <code>anonfun1</code>: + * </p> + * <pre> + * <b>object</b> Main <b>extends</b> Application { * - * <b>val</b> succ = (x: Int) => x + 1 + * <b>val</b> succ = (x: Int) => x + 1 * - * <b>val</b> anonfun1 = <b>new</b> Function1[Int, Int] { - * <b>def</b> apply(x: Int): Int = x + 1 - * } + * <b>val</b> anonfun1 = <b>new</b> Function1[Int, Int] { + * <b>def</b> apply(x: Int): Int = x + 1 + * } * - * Console.println(succ(0)) - * Console.println(anonfun1(0)) - * }</pre> + * Console.println(succ(0)) + * Console.println(anonfun1(0)) + * }</pre> */ -trait Function1 [-T1, +R] extends AnyRef { - +trait Function1[-T1, +R] extends AnyRef { def apply(v1:T1): R - override def toString() = "<function>" /** (f compose g)(x) = f(g(x)) @@ -43,4 +46,5 @@ trait Function1 [-T1, +R] extends AnyRef { /** (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/Function2.scala b/src/library/scala/Function2.scala index 27cefc1bbe..fbcf4094c7 100644 --- a/src/library/scala/Function2.scala +++ b/src/library/scala/Function2.scala @@ -1,36 +1,41 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 (with fancy comment) // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 (with fancy comment) + package scala -/** - * Function with 2 parameters. In the following example the definition of - * <code>max</code> is a shorthand for the anonymous class definition - * <code>anonfun2</code>: - * <pre> - * <b>object</b> Main <b>extends</b> Application { +/** <p> + * Function with 2 parameters. + * </p> + * <p> + In the following example the definition of + * <code>max</code> is a shorthand for the anonymous class definition + * <code>anonfun2</code>: + * </p> + * <pre> + * <b>object</b> Main <b>extends</b> Application { * - * <b>val</b> max = (x: Int, y: Int) => <b>if</b> (x < y) y <b>else</b> x + * <b>val</b> max = (x: Int, y: Int) => <b>if</b> (x < y) y <b>else</b> x * - * <b>val</b> anonfun2 = <b>new</b> Function2[Int, Int, Int] { - * <b>def</b> apply(x: Int, y: Int): Int = <b>if</b> (x < y) y <b>else</b> x - * } + * <b>val</b> anonfun2 = <b>new</b> Function2[Int, Int, Int] { + * <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)) - * }</pre> + * Console.println(max(0, 1)) + * Console.println(anonfun2(0, 1)) + * }</pre> */ -trait Function2 [-T1, -T2, +R] extends AnyRef { +trait Function2[-T1, -T2, +R] extends AnyRef { def apply(v1:T1, v2:T2): R override def toString() = "<function>" diff --git a/src/library/scala/Function3.scala b/src/library/scala/Function3.scala index 79852aaa05..9e78250daf 100644 --- a/src/library/scala/Function3.scala +++ b/src/library/scala/Function3.scala @@ -1,22 +1,25 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala -/** - * Function with 3 parameters. +/** <p> + * Function with 3 parameters. + * </p> + * */ -trait Function3 [-T1, -T2, -T3, +R] extends AnyRef { +trait Function3[-T1, -T2, -T3, +R] extends AnyRef { def apply(v1:T1, v2:T2, v3:T3): R override def toString() = "<function>" diff --git a/src/library/scala/Function4.scala b/src/library/scala/Function4.scala index 7423e6aacf..0f15b036da 100644 --- a/src/library/scala/Function4.scala +++ b/src/library/scala/Function4.scala @@ -1,22 +1,25 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala -/** - * Function with 4 parameters. +/** <p> + * Function with 4 parameters. + * </p> + * */ -trait Function4 [-T1, -T2, -T3, -T4, +R] extends AnyRef { +trait Function4[-T1, -T2, -T3, -T4, +R] extends AnyRef { def apply(v1:T1, v2:T2, v3:T3, v4:T4): R override def toString() = "<function>" diff --git a/src/library/scala/Function5.scala b/src/library/scala/Function5.scala index 494b4ac62b..774c97aa67 100644 --- a/src/library/scala/Function5.scala +++ b/src/library/scala/Function5.scala @@ -1,22 +1,25 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala -/** - * Function with 5 parameters. +/** <p> + * Function with 5 parameters. + * </p> + * */ -trait Function5 [-T1, -T2, -T3, -T4, -T5, +R] extends AnyRef { +trait Function5[-T1, -T2, -T3, -T4, -T5, +R] extends AnyRef { def apply(v1:T1, v2:T2, v3:T3, v4:T4, v5:T5): R override def toString() = "<function>" diff --git a/src/library/scala/Function6.scala b/src/library/scala/Function6.scala index 430f9366cc..060c0c9a87 100644 --- a/src/library/scala/Function6.scala +++ b/src/library/scala/Function6.scala @@ -1,22 +1,25 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala -/** - * Function with 6 parameters. +/** <p> + * Function with 6 parameters. + * </p> + * */ -trait Function6 [-T1, -T2, -T3, -T4, -T5, -T6, +R] extends AnyRef { +trait Function6[-T1, -T2, -T3, -T4, -T5, -T6, +R] extends AnyRef { def apply(v1:T1, v2:T2, v3:T3, v4:T4, v5:T5, v6:T6): R override def toString() = "<function>" diff --git a/src/library/scala/Function7.scala b/src/library/scala/Function7.scala index 4b8ff20d78..c0e38fec0c 100644 --- a/src/library/scala/Function7.scala +++ b/src/library/scala/Function7.scala @@ -1,22 +1,25 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala -/** - * Function with 7 parameters. +/** <p> + * Function with 7 parameters. + * </p> + * */ -trait Function7 [-T1, -T2, -T3, -T4, -T5, -T6, -T7, +R] extends AnyRef { +trait Function7[-T1, -T2, -T3, -T4, -T5, -T6, -T7, +R] extends AnyRef { def apply(v1:T1, v2:T2, v3:T3, v4:T4, v5:T5, v6:T6, v7:T7): R override def toString() = "<function>" diff --git a/src/library/scala/Function8.scala b/src/library/scala/Function8.scala index bb19442a85..50a8c6a36f 100644 --- a/src/library/scala/Function8.scala +++ b/src/library/scala/Function8.scala @@ -1,22 +1,25 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 // $Id$ +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala -/** - * Function with 8 parameters. +/** <p> + * Function with 8 parameters. + * </p> + * */ -trait Function8 [-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, +R] extends AnyRef { +trait Function8[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, +R] extends AnyRef { def apply(v1:T1, v2:T2, v3:T3, v4:T4, v5:T5, v6:T6, v7:T7, v8:T8): R override def toString() = "<function>" diff --git a/src/library/scala/Product0.scala b/src/library/scala/Product0.scala index 77d27ccb66..712087a0eb 100644 --- a/src/library/scala/Product0.scala +++ b/src/library/scala/Product0.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product0 { /** Product0 is a cartesian product of 0 components */ -trait Product0 extends Product { +trait Product0 extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product0 extends Product { override def arity = 0 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case _ => throw new IndexOutOfBoundsException(n.toString()) diff --git a/src/library/scala/Product1.scala b/src/library/scala/Product1.scala index 22544ff9fb..b751efa85f 100644 --- a/src/library/scala/Product1.scala +++ b/src/library/scala/Product1.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product1 { /** Product1 is a cartesian product of 1 components */ -trait Product1 [+T1] extends Product { +trait Product1[+T1] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product1 [+T1] extends Product { override def arity = 1 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product10.scala b/src/library/scala/Product10.scala index 8ec9ec4bdf..e45c916fee 100644 --- a/src/library/scala/Product10.scala +++ b/src/library/scala/Product10.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product10[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product10 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10] extends Prod override def arity = 10 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product11.scala b/src/library/scala/Product11.scala index 0a75a3c80a..94a498622f 100644 --- a/src/library/scala/Product11.scala +++ b/src/library/scala/Product11.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product11[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product11 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11] extend override def arity = 11 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product12.scala b/src/library/scala/Product12.scala index aaecd92e6b..af93b165dc 100644 --- a/src/library/scala/Product12.scala +++ b/src/library/scala/Product12.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product12[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product12 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12] override def arity = 12 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product13.scala b/src/library/scala/Product13.scala index 775cb704bb..756a0cbba7 100644 --- a/src/library/scala/Product13.scala +++ b/src/library/scala/Product13.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product13[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product13 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 13 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product14.scala b/src/library/scala/Product14.scala index 5d4794ebf3..5ffdd13c2f 100644 --- a/src/library/scala/Product14.scala +++ b/src/library/scala/Product14.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product14[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product14 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 14 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product15.scala b/src/library/scala/Product15.scala index afd34997eb..55e28b8c15 100644 --- a/src/library/scala/Product15.scala +++ b/src/library/scala/Product15.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product15[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product15 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 15 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product16.scala b/src/library/scala/Product16.scala index d3de407ada..1d8aff3e4b 100644 --- a/src/library/scala/Product16.scala +++ b/src/library/scala/Product16.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product16[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product16 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 16 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product17.scala b/src/library/scala/Product17.scala index db75ede671..8009012a6b 100644 --- a/src/library/scala/Product17.scala +++ b/src/library/scala/Product17.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product17[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product17 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 17 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product18.scala b/src/library/scala/Product18.scala index 2be9e802fb..30866a7465 100644 --- a/src/library/scala/Product18.scala +++ b/src/library/scala/Product18.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product18[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product18 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 18 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product19.scala b/src/library/scala/Product19.scala index b0d0bc0a0f..83dbd009ae 100644 --- a/src/library/scala/Product19.scala +++ b/src/library/scala/Product19.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product19[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product19 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 19 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product2.scala b/src/library/scala/Product2.scala index 8b78c485a7..0426bd0331 100644 --- a/src/library/scala/Product2.scala +++ b/src/library/scala/Product2.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product2 { /** Product2 is a cartesian product of 2 components */ -trait Product2 [+T1, +T2] extends Product { +trait Product2[+T1, +T2] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product2 [+T1, +T2] extends Product { override def arity = 2 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product20.scala b/src/library/scala/Product20.scala index 73218da8ff..bb33159a58 100644 --- a/src/library/scala/Product20.scala +++ b/src/library/scala/Product20.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +trait Product20[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, +T13, +T14, +T15, +T16, +T17, +T18, +T19, +T20] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product20 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 20 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product21.scala b/src/library/scala/Product21.scala index 378c3584aa..b40dd154b0 100644 --- a/src/library/scala/Product21.scala +++ b/src/library/scala/Product21.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +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 { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product21 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 21 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product22.scala b/src/library/scala/Product22.scala index af7029be46..fd07ecc452 100644 --- a/src/library/scala/Product22.scala +++ b/src/library/scala/Product22.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,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 { +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 { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product22 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10, +T11, +T12, override def arity = 22 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product3.scala b/src/library/scala/Product3.scala index 50a3cf9522..ef3f98bb83 100644 --- a/src/library/scala/Product3.scala +++ b/src/library/scala/Product3.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product3 { /** Product3 is a cartesian product of 3 components */ -trait Product3 [+T1, +T2, +T3] extends Product { +trait Product3[+T1, +T2, +T3] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product3 [+T1, +T2, +T3] extends Product { override def arity = 3 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product4.scala b/src/library/scala/Product4.scala index 1ff8b8c179..b4953f6177 100644 --- a/src/library/scala/Product4.scala +++ b/src/library/scala/Product4.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product4 { /** Product4 is a cartesian product of 4 components */ -trait Product4 [+T1, +T2, +T3, +T4] extends Product { +trait Product4[+T1, +T2, +T3, +T4] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product4 [+T1, +T2, +T3, +T4] extends Product { override def arity = 4 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product5.scala b/src/library/scala/Product5.scala index 164f853028..3abb11e8ba 100644 --- a/src/library/scala/Product5.scala +++ b/src/library/scala/Product5.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product5 { /** Product5 is a cartesian product of 5 components */ -trait Product5 [+T1, +T2, +T3, +T4, +T5] extends Product { +trait Product5[+T1, +T2, +T3, +T4, +T5] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product5 [+T1, +T2, +T3, +T4, +T5] extends Product { override def arity = 5 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product6.scala b/src/library/scala/Product6.scala index 9b951d0a4d..f0cca6d117 100644 --- a/src/library/scala/Product6.scala +++ b/src/library/scala/Product6.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product6 { /** Product6 is a cartesian product of 6 components */ -trait Product6 [+T1, +T2, +T3, +T4, +T5, +T6] extends Product { +trait Product6[+T1, +T2, +T3, +T4, +T5, +T6] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product6 [+T1, +T2, +T3, +T4, +T5, +T6] extends Product { override def arity = 6 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product7.scala b/src/library/scala/Product7.scala index b6d6ce09db..77354e93d4 100644 --- a/src/library/scala/Product7.scala +++ b/src/library/scala/Product7.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product7 { /** Product7 is a cartesian product of 7 components */ -trait Product7 [+T1, +T2, +T3, +T4, +T5, +T6, +T7] extends Product { +trait Product7[+T1, +T2, +T3, +T4, +T5, +T6, +T7] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product7 [+T1, +T2, +T3, +T4, +T5, +T6, +T7] extends Product { override def arity = 7 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product8.scala b/src/library/scala/Product8.scala index 7d9ffd0340..6e44e2c41b 100644 --- a/src/library/scala/Product8.scala +++ b/src/library/scala/Product8.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product8 { /** Product8 is a cartesian product of 8 components */ -trait Product8 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8] extends Product { +trait Product8[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product8 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8] extends Product { override def arity = 8 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Product9.scala b/src/library/scala/Product9.scala index 14538e3c42..c652e773c4 100644 --- a/src/library/scala/Product9.scala +++ b/src/library/scala/Product9.scala @@ -1,13 +1,16 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -// generated on Tue Nov 28 17:25:56 CET 2006 +// $Id: genprod.scala 9429 2006-11-30 10:17:30Z michelou $ + +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + package scala import Predef._ @@ -19,7 +22,7 @@ object Product9 { /** Product9 is a cartesian product of 9 components */ -trait Product9 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9] extends Product { +trait Product9[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9] extends Product { /** * The arity of this product. @@ -28,10 +31,12 @@ trait Product9 [+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9] extends Product { override def arity = 9 /** - * Returns the n-th projection of this product if 0<=n<arity, otherwise null + * Returns the n-th projection of this product if 0<=n<arity, + * otherwise null. + * * @param n number of the projection to be returned - * @return same as _(n+1) - * @throws IndexOutOfBoundsException + * @return same as _(n+1) + * @throws IndexOutOfBoundsException */ override def element(n: Int) = n match { case 0 => _1 diff --git a/src/library/scala/Tuple1.scala b/src/library/scala/Tuple1.scala index 9bd87e1798..10212c757d 100644 --- a/src/library/scala/Tuple1.scala +++ b/src/library/scala/Tuple1.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** Tuple1 is the canonical representation of a @see Product1 */ -case class Tuple1 [+T1] (_1:T1) { +case class Tuple1[+T1](_1:T1) { override def productPrefix = "" diff --git a/src/library/scala/Tuple2.scala b/src/library/scala/Tuple2.scala index 7021587d3f..13937ad11d 100644 --- a/src/library/scala/Tuple2.scala +++ b/src/library/scala/Tuple2.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** Tuple2 is the canonical representation of a @see Product2 */ -case class Tuple2 [+T1, +T2] (_1:T1, _2:T2) { +case class Tuple2[+T1, +T2](_1:T1, _2:T2) { override def productPrefix = "" diff --git a/src/library/scala/Tuple3.scala b/src/library/scala/Tuple3.scala index 5fea64bb8b..860a1eaa41 100644 --- a/src/library/scala/Tuple3.scala +++ b/src/library/scala/Tuple3.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** Tuple3 is the canonical representation of a @see Product3 */ -case class Tuple3 [+T1, +T2, +T3] (_1:T1, _2:T2, _3:T3) { +case class Tuple3[+T1, +T2, +T3](_1:T1, _2:T2, _3:T3) { override def productPrefix = "" diff --git a/src/library/scala/Tuple4.scala b/src/library/scala/Tuple4.scala index 1ef6b8a04f..647945f693 100644 --- a/src/library/scala/Tuple4.scala +++ b/src/library/scala/Tuple4.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** Tuple4 is the canonical representation of a @see Product4 */ -case class Tuple4 [+T1, +T2, +T3, +T4] (_1:T1, _2:T2, _3:T3, _4:T4) { +case class Tuple4[+T1, +T2, +T3, +T4](_1:T1, _2:T2, _3:T3, _4:T4) { override def productPrefix = "" diff --git a/src/library/scala/Tuple5.scala b/src/library/scala/Tuple5.scala index dc9fb37ffc..a05cc96f5e 100644 --- a/src/library/scala/Tuple5.scala +++ b/src/library/scala/Tuple5.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** 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) { +case class Tuple5[+T1, +T2, +T3, +T4, +T5](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5) { override def productPrefix = "" diff --git a/src/library/scala/Tuple6.scala b/src/library/scala/Tuple6.scala index d4faf96b41..f7c957eb0b 100644 --- a/src/library/scala/Tuple6.scala +++ b/src/library/scala/Tuple6.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** 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) { +case class Tuple6[+T1, +T2, +T3, +T4, +T5, +T6](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6) { override def productPrefix = "" diff --git a/src/library/scala/Tuple7.scala b/src/library/scala/Tuple7.scala index e4dae669bb..65f29d90fd 100644 --- a/src/library/scala/Tuple7.scala +++ b/src/library/scala/Tuple7.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** 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) { +case class Tuple7[+T1, +T2, +T3, +T4, +T5, +T6, +T7](_1:T1, _2:T2, _3:T3, _4:T4, _5:T5, _6:T6, _7:T7) { override def productPrefix = "" diff --git a/src/library/scala/Tuple8.scala b/src/library/scala/Tuple8.scala index 7776285288..1e5c804d8f 100644 --- a/src/library/scala/Tuple8.scala +++ b/src/library/scala/Tuple8.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -9,11 +9,12 @@ // $Id$ -// generated on Tue Nov 28 17:25:56 CET 2006 -package scala; +// generated by genprod on Fri Dec 08 20:07:08 CET 2006 + +package scala /** 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) { +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) { override def productPrefix = "" |