summaryrefslogtreecommitdiff
path: root/src/library/scala/Tuple2.scala
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-11-27 14:29:19 +0000
committerBurak Emir <emir@epfl.ch>2006-11-27 14:29:19 +0000
commitccf513fe443e842a2dd1ceababe173cda27f99c2 (patch)
tree755440f54708ad1a0838311ee1cc7ece73cbc4d8 /src/library/scala/Tuple2.scala
parent6538ff2bea57b2c14e4cb27a06e10c0dbe7081bb (diff)
downloadscala-ccf513fe443e842a2dd1ceababe173cda27f99c2.tar.gz
scala-ccf513fe443e842a2dd1ceababe173cda27f99c2.tar.bz2
scala-ccf513fe443e842a2dd1ceababe173cda27f99c2.zip
more products, plus some static optimization in...
more products, plus some static optimization in pattern matcher
Diffstat (limited to 'src/library/scala/Tuple2.scala')
-rw-r--r--src/library/scala/Tuple2.scala9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/library/scala/Tuple2.scala b/src/library/scala/Tuple2.scala
index 406a34b818..b59f987417 100644
--- a/src/library/scala/Tuple2.scala
+++ b/src/library/scala/Tuple2.scala
@@ -1,3 +1,4 @@
+
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
@@ -8,10 +9,12 @@
// $Id$
-
+// generated on Mon Nov 27 15:01:28 CET 2006
package scala;
+/** Tuple2 is the canonical representation of a @see Product2 */
+case class Tuple2 [+T1, +T2] (_1:T1, _2:T2) {
+
+ override def productPrefix = ""
-case class Tuple2[+T1, +T2](_1: T1, _2: T2) {
- override def toString(): String = "(" + _1 + "," + _2 + ")";
}