summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-04-14 15:27:42 +0000
committerburaq <buraq@epfl.ch>2004-04-14 15:27:42 +0000
commita55fdce8994638050c474901420f7e4fb4bddb72 (patch)
tree531e2e1d39f84a55a9740be45fa8fb9fd91a754c /sources
parent3ec2af254866c60389b3fd304c14d1137b9cf4c8 (diff)
downloadscala-a55fdce8994638050c474901420f7e4fb4bddb72.tar.gz
scala-a55fdce8994638050c474901420f7e4fb4bddb72.tar.bz2
scala-a55fdce8994638050c474901420f7e4fb4bddb72.zip
removed Similarity
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/Seq.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/scala/Seq.scala b/sources/scala/Seq.scala
index 0a7f4bc7ba..e9b157b696 100644
--- a/sources/scala/Seq.scala
+++ b/sources/scala/Seq.scala
@@ -17,7 +17,7 @@ package scala;
* @author Matthias Zenger
* @version 1.0, 16/07/2003
*/
-trait Seq[+A] with PartialFunction[Int, A] with Iterable[A] with Similarity {
+trait Seq[+A] with PartialFunction[Int, A] with Iterable[A] {
/** Returns the length of the sequence.
*
@@ -112,8 +112,7 @@ trait Seq[+A] with PartialFunction[Int, A] with Iterable[A] with Similarity {
/** Returns true if the elements in this sequence are equal
* to the elements in another sequence
- */
- def similar(x: Any): Boolean = {
+ def similar(x: Any): Boolean = { // WEG
x.match {
case that: Seq[A] =>
(that.length == this.length) && sameElements(that)
@@ -121,6 +120,7 @@ trait Seq[+A] with PartialFunction[Int, A] with Iterable[A] with Similarity {
false
}
}
+ */
/** Customizes the <code>toString</code> method.
*