scala.collection

trait Traversable

[source: scala/collection/Traversable.scala]

trait Traversable[+A]
extends TraversableLike[A, Traversable[A]] with GenericTraversableTemplate[A, Traversable]

A template trait for traversable collections.

Collection classes mixing in this trait provide a method foreach which traverses all the elements contained in the collection, applying a given procedure to each. They also provide a method newBuilder which creates a builder for collections of the same kind.

Author
Martin Odersky
Version
2.8
Since
2.8
Direct Known Subclasses:
Iterable, TraversableProxy, TraversableViewLike, TraversableForwarder, Traversable, Traversable

Method Summary
def companion : GenericCompanion[Traversable]
The factory companion object that builds instances of class CC
Methods inherited from GenericTraversableTemplate
foreach (abstract), newBuilder, genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableLike
repr, thisCollection, toCollection, isEmpty, nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, foldRight, :\, reduceLeft, reduceLeftOption, reduceRight, reduceRightOption, sum, product, min, max, head, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toIterable, toSeq, toIndexedSeq, toStream, toSet, mkString, mkString, mkString, addString, addString, addString, toString, stringPrefix, view, view, withFilter
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def companion : GenericCompanion[Traversable]
The factory companion object that builds instances of class CC
Overrides
GenericTraversableTemplate.companion