Scala Library
|
|
scala/collection/Traversable.scala
]
trait
Traversable[+A]
extends
TraversableTemplate[A, Traversable[A]] with
TraversableClass[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.
Method Summary | |
def
|
companion
: Companion[Traversable]
The factory companion object that builds instances of class CC
|
Methods inherited from TraversableClass | |
foreach (abstract), newBuilder, genericBuilder, unzip, flatten, transpose |
Methods inherited from TraversableTemplate | |
thisCollection, isEmpty, nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, foldRight, :\, reduceLeft, reduceLeftOption, reduceRight, reduceRightOption, head, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toIterable, toSequence, toStream, toSet, mkString, mkString, mkString, addString, addString, addString, toString, stringPrefix, view, view |
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 : Companion[Traversable]
Scala Library
|
|