scalax.data

class OrdIterableExtras

[source: scalax/data/OrdIterableExtras.scala]

class OrdIterableExtras[A](i : scala.Iterable[A], implicit ord : Ord[A])
extends AnyRef
Method Summary
def max : A
Returns the maximum element. Throws NoSuchElementException if there are none.
def min : A
Returns the minimum element. Throws NoSuchElementException if there are none.
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 max : A
Returns the maximum element. Throws NoSuchElementException if there are none.

def min : A
Returns the minimum element. Throws NoSuchElementException if there are none.


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.