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

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 Serializable
trait ((T, T)) => Comparison
class Object
trait Matchable
class Any
Self type
object Comparer

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 Object
trait Matchable
class Any
Self type
Comparer.type
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 Object
trait Matchable
class Any
Known subtypes
class Different
object Same
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 Object
trait Matchable
class 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 Serializable
trait Product
trait Equals
trait Comparison
trait () => Option[Boolean]
class Object
trait Matchable
class Any
Show 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 Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Comparison
trait () => Option[Boolean]
class Object
trait Matchable
class Any
Show all
Self type
Same.type
case class Sortable[X](xs: Seq[X])(using evidence$1: Ordering[X])

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Sorted[T](ts: Seq[T])(implicit f: Comparer[T]) extends () => Seq[T]

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 Serializable
trait Product
trait Equals
trait () => Seq[T]
class Object
trait Matchable
class Any
Show all
object Sorted

Attributes

Companion
class
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 Object
trait Matchable
class Any
Self type
Sorted.type
object Test extends App

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 App
trait DelayedInit
class Object
trait Matchable
class Any
Self type
Test.type