From 8c8b95f3ed4bc13887dcf4fc2ae07bd48c2c463c Mon Sep 17 00:00:00 2001 From: mihaylov Date: Fri, 10 Mar 2006 10:22:20 +0000 Subject: Reintroduced the toList method for efficiency --- src/library/scala/List.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/library/scala/List.scala b/src/library/scala/List.scala index c9f5789310..c80b0c24e2 100644 --- a/src/library/scala/List.scala +++ b/src/library/scala/List.scala @@ -473,11 +473,11 @@ sealed abstract class List[+a] extends Seq[a] { } } - /** Transform this sequence into a list of all elements. - * - * @return a list which enumerates all elements of this sequence. - */ - //override def toList: List[a] = this; //!!! + /** Overrides the method in Iterable for efficiency. + * + * @return the list itself + */ + override def toList: List[a] = this; /** Returns the list without its last element. * -- cgit v1.2.3