Sorted

com.phasmidsoftware.lascala.sort.Sorted
See theSorted companion object
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

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

Members list

Value members

Concrete methods

def apply(): Seq[T]

Applies the body of this function to the arguments.

Applies the body of this function to the arguments.

Attributes

Returns

the result of function application.

def async(implicit ec: ExecutionContext): Future[Seq[T]]
def parSort(implicit ec: ExecutionContext): Future[Seq[T]]
def sort(o: Comparer[T]): Sorted[T]

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function0 -> Any
Inherited from:
Function0

Implicits

Implicits

implicit val ordering: Ordering[T]