Package

net.fosdal.oslo

oordering

Permalink

package oordering

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. oordering
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class OrderedOps[O] extends AnyVal

    Permalink
  2. implicit final class OrderingOps[O] extends AnyVal

    Permalink

Value Members

  1. def max[A](x: A, y: A)(implicit arg0: Ordering[A]): A

    Permalink

    A functional form of Ops::max.

    A functional form of Ops::max. Useful to avoid ambiguities like this:

    import scala.math.Ordering.Implicits._
    
    "aaa".max("bbb")
    // Error:(17, 13) type mismatch;
    // found   : String("bbb")
    // required: Ordering[?]
    // "aaaa".max("bbb");
    //            ^

    which crop up when you're trying to invoke max on an object that itself has a max function already.

    See also

    scala.math.Ordering.max

  2. def min[A](x: A, y: A)(implicit arg0: Ordering[A]): A

    Permalink

    Like max, but for min.

    Like max, but for min.

    See also

    net.fosdal.oslo.oordering.max

Inherited from AnyRef

Inherited from Any

Ungrouped