diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-16 14:45:25 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-16 14:45:25 +0000 |
commit | 92ec9e276b481844860a07f1e9e64dff2c4ce7f8 (patch) | |
tree | 7930a55bb4868ab45f98f80d0bdf57accf3f9e39 /src/library/scala/Product4.scala | |
parent | 374b34db53f480d51507a554abfe029ee20d1c2b (diff) | |
download | scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.gz scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.bz2 scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.zip |
Improvements to genprod
Added uncurry to Function2, swap to Tuple2.
Diffstat (limited to 'src/library/scala/Product4.scala')
-rw-r--r-- | src/library/scala/Product4.scala | 8 |
1 files changed, 6 insertions, 2 deletions
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 + + } |