com.phasmidsoftware.lascala.sort
package com.phasmidsoftware.lascala.sort
Members list
Type members
Deprecated classlikes
trait Comparer[T] extends ((T, T)) => Comparison, Serializable
This trait defines the concept of a Comparer: something that can compare two T values and yield a Comparison.
This trait defines the concept of a Comparer: something that can compare two T values and yield a Comparison.
It is a type class
CONSIDER: renaming this trait as Orderable. The only problem is that we already have an Orderable in LaScala. Probably we should merge the two concepts.
Type parameters
- T
-
the type of the objects to be compared
Attributes
object Comparer
trait Comparison extends () => Option[Boolean]
Attributes
- Companion
- object
- Deprecated
-
[Since version 2.1.0]Use the Comparer library (\"com.phasmidsoftware\" %% \"comparer\"); com.phasmidsoftware.lascala.sort will be removed in LaScala 3.0 - Supertypes
-
trait () => Option[Boolean]class Objecttrait Matchableclass Any
- Known subtypes
object Comparison
Attributes
- Companion
- trait
- Deprecated
-
[Since version 2.1.0]Use the Comparer library (\"com.phasmidsoftware\" %% \"comparer\"); com.phasmidsoftware.lascala.sort will be removed in LaScala 3.0 - Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Comparison.type
case class Different(less: Boolean) extends Comparison
Attributes
- Deprecated
-
[Since version 2.1.0]Use the Comparer library (\"com.phasmidsoftware\" %% \"comparer\"); com.phasmidsoftware.lascala.sort will be removed in LaScala 3.0 - Supertypes
-
trait Serializabletrait Producttrait Equalstrait Comparisontrait () => Option[Boolean]class Objecttrait Matchableclass AnyShow all
case object Same extends Comparison
Attributes
- Deprecated
-
[Since version 2.1.0]Use the Comparer library (\"com.phasmidsoftware\" %% \"comparer\"); com.phasmidsoftware.lascala.sort will be removed in LaScala 3.0 - Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Comparisontrait () => Option[Boolean]class Objecttrait Matchableclass AnyShow all
- Self type
-
Same.type
Attributes
- Deprecated
-
[Since version 2.1.0]Use the Comparer library (\"com.phasmidsoftware\" %% \"comparer\"); com.phasmidsoftware.lascala.sort will be removed in LaScala 3.0 - Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
This defines a lazily sorted wrapper for a sequence of Ts
This defines a lazily sorted wrapper for a sequence of Ts
Type parameters
- T
-
the underlying value type
Value parameters
- f
-
the Comparer
- ts
-
the sequence of Ts
Attributes
- Companion
- object
- Deprecated
-
[Since version 2.1.0]Use the Comparer library (\"com.phasmidsoftware\" %% \"comparer\"); com.phasmidsoftware.lascala.sort will be removed in LaScala 3.0 - Supertypes
-
trait Serializabletrait Producttrait Equalstrait () => Seq[T]class Objecttrait Matchableclass AnyShow all
object Sorted
In this article