summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/generic/TraversableForwarder.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-08 15:40:53 +0000
committerPaul Phillips <paulp@improving.org>2011-03-08 15:40:53 +0000
commit783721e98a4f61fc0c72298811b15e99c058d5e6 (patch)
treecdc0786526c572cfb9198942d517fbfd36ed0ba5 /src/library/scala/collection/generic/TraversableForwarder.scala
parent8328a880b60ded33d5d49b88bdc75020b577eb27 (diff)
downloadscala-783721e98a4f61fc0c72298811b15e99c058d5e6.tar.gz
scala-783721e98a4f61fc0c72298811b15e99c058d5e6.tar.bz2
scala-783721e98a4f61fc0c72298811b15e99c058d5e6.zip
An overhaul of slice and related implementation...
An overhaul of slice and related implementations (primarily that is drop and take.) In the course of trying to get it working consistently (mostly with respect to negative indices, which were dealt with arbitrarily differently across the 25+ concrete implementations) I fixed various bugs. Closes #4288, no review.
Diffstat (limited to 'src/library/scala/collection/generic/TraversableForwarder.scala')
-rw-r--r--src/library/scala/collection/generic/TraversableForwarder.scala25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/library/scala/collection/generic/TraversableForwarder.scala b/src/library/scala/collection/generic/TraversableForwarder.scala
index 100733abf4..0049d23a86 100644
--- a/src/library/scala/collection/generic/TraversableForwarder.scala
+++ b/src/library/scala/collection/generic/TraversableForwarder.scala
@@ -12,30 +12,19 @@ import scala.collection._
import mutable.{ Buffer, StringBuilder }
import immutable.{ List, Stream }
-/** <p>
- * This trait implements a forwarder for traversable objects. It forwards
- * all calls to a different iterable object, except for
- * </p>
- * <ul>
- * <li><code>toString</code>, <code>hashCode</code>, <code>equals</code>,
- * <code>stringPrefix</code>
- * </li>
- * <li><code>newBuilder</code>, <code>view</code></li>
- * <li>all calls creating a new iterable object of the same kind</li>
- * </ul>
- * <p>
- * The above methods are forwarded by subclass
- * <a href="TraversableProxy.html" target="ContentFrame">
- * <code>TraversableProxy</code></a>.
- * </p>
+/** This trait implements a forwarder for traversable objects. It forwards
+ * all calls to a different traversable, except for:
+ {{{
+ toString, hashCode, equals, stringPrefix, newBuilder, view
+ }}}
+ * All calls creating a new traversable of the same kind.
*
* @author Martin Odersky
* @version 2.8
* @since 2.8
*/
trait TraversableForwarder[+A] extends Traversable[A] {
-
- /** The iterable object to which calls are forwarded */
+ /** The traversable object to which calls are forwarded. */
protected def underlying: Traversable[A]
override def foreach[B](f: A => B): Unit = underlying.foreach(f)