All Downloads are FREE. Search and download functionalities are using the official Maven repository.

izumi.reflect.internal.OrderingCompat.scala Maven / Gradle / Ivy

There is a newer version: 2.3.10
Show newest version
package izumi.reflect.internal

import scala.collection.mutable

private[reflect] object OrderingCompat {
  @inline private[reflect] def listOrdering[A](ordering: Ordering[A]): Ordering[List[A]] = {
    Ordering.Implicits.seqOrdering(ordering)
  }
  @inline private[reflect] def arrayOrdering[A](ordering: Ordering[A]): Ordering[Array[A]] = {
    Ordering.Implicits.seqOrdering[ArraySeqLike, A](ordering).on(array => array)
  }
  final type ArraySeqLike[A] = mutable.ArraySeq[A]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy