scala.collection.Traversable

class ComparableTraversableOps

[source: scala/collection/Traversable.scala]

class ComparableTraversableOps[A](self : Traversable[A], cmp : Ordering[A])
extends AnyRef
A wrapper class which adds `min` and `max` methods to iterables of an element type that has an Ordering.
Method Summary
def max : A
Returns the maximal element of the wrapped iterable `self` with respect to the given ordering `cmp`
def min : A
Returns the minimal element of the wrapped iterable `self` with respect to the given ordering `cmp`
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def min : A
Returns the minimal element of the wrapped iterable `self` with respect to the given ordering `cmp`

def max : A
Returns the maximal element of the wrapped iterable `self` with respect to the given ordering `cmp`