diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-14 06:38:35 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-14 06:38:35 +0000 |
commit | fa0ee266cdf26295a8ed3be10860afcace36a54b (patch) | |
tree | d9573e7d6fb9f37330ca478f6d091189d95f399b /src/library/scala/collection/GenTraversableLike.scala | |
parent | 8198c1193ccc539ce58b12505c31e399139b45e6 (diff) | |
download | scala-fa0ee266cdf26295a8ed3be10860afcace36a54b.tar.gz scala-fa0ee266cdf26295a8ed3be10860afcace36a54b.tar.bz2 scala-fa0ee266cdf26295a8ed3be10860afcace36a54b.zip |
Doing a little polishing on the parallel collec...
Doing a little polishing on the parallel collections refactor (which
overall looks like a big improvement.) I went for some simpler wording
and moved a number of scaladoc tags around because the rug had been
pulled out from under their feet.
This leaves a lot undone, but since many of the docs need to be reworded
before they can move from e.g. SeqLike to GenSeqLike, and I'm not well
informed on exactly how these abstractions are being presented, I stayed
in the safe zone. Review by prokopec.
Diffstat (limited to 'src/library/scala/collection/GenTraversableLike.scala')
-rw-r--r-- | src/library/scala/collection/GenTraversableLike.scala | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/src/library/scala/collection/GenTraversableLike.scala b/src/library/scala/collection/GenTraversableLike.scala index 5c49df2461..c284efd9d4 100644 --- a/src/library/scala/collection/GenTraversableLike.scala +++ b/src/library/scala/collection/GenTraversableLike.scala @@ -8,14 +8,37 @@ package scala.collection - - import generic._ - - -/** A template trait for all traversable collections which may possibly - * have their operations implemented in parallel. +/** A template trait for all traversable collections upon which operations + * may be implemented in parallel. + * + * @define thatinfo the class of the returned collection. Where possible, `That` is + * the same class as the current collection class `Repr`, but this + * depends on the element type `B` being admissible for that class, + * which means that an implicit instance of type `CanBuildFrom[Repr, B, That]` + * is found. + * @define bfinfo an implicit value of class `CanBuildFrom` which determines + * the result class `That` from the current representation type `Repr` and + * and the new element type `B`. + * @define orderDependent + * + * Note: might return different results for different runs, unless the underlying collection type is ordered. + * @define orderDependentFold + * + * Note: might return different results for different runs, unless the underlying collection type is ordered. + * or the operator is associative and commutative. + * @define mayNotTerminateInf + * + * Note: may not terminate for infinite-sized collections. + * @define willNotTerminateInf + * + * Note: will not terminate for infinite-sized collections. + * + * @define Coll GenTraversable + * @define coll collection + * @tparam T the collection element type. + * @tparam Repr the actual type of the element container. * * @author Martin Odersky * @author Aleksandar Prokopec |