scala.collection

object Iterable

[source: scala/collection/Iterable.scala]

object Iterable
extends TraversableFactory[Iterable]
Factory methods and utilities for instances of type Iterable.
Author
Martin Odersky
Version
2.8
Type Summary
type Projection
Method Summary
implicit def canBuildFrom [A] : CanBuildFrom[Iterable, A, Iterable[A]]
def max [A](seq : Iterable[A])(implicit ord : Ordering[A]) : A
The maximum element of a non-empty sequence of ordered elements
def min [A](seq : Iterable[A])(implicit ord : Ordering[A]) : A
The minimum element of a non-empty sequence of ordered elements
def newBuilder [A] : Builder[A, Iterable[A]]
Methods inherited from TraversableFactory
concat, fill, fill, fill, fill, fill, tabulate, tabulate, tabulate, tabulate, tabulate, range, range, iterate
Methods inherited from GenericCompanion
empty, apply
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
@deprecated("use View instead")

type Projection

Method Details
implicit def canBuildFrom[A] : CanBuildFrom[Iterable, A, Iterable[A]]

def newBuilder[A] : Builder[A, Iterable[A]]

@deprecated("use seq.min instead")

def min[A](seq : Iterable[A])(implicit ord : Ordering[A]) : A
The minimum element of a non-empty sequence of ordered elements

@deprecated("use seq.max instead")

def max[A](seq : Iterable[A])(implicit ord : Ordering[A]) : A
The maximum element of a non-empty sequence of ordered elements