Sort

type Iter<X> = Iter.Iter<X>

type Seq<X> = Sequence.Sequence<X>

type Cell<X> = Cell.Cell<X>

class Sort<X>(toText : X -> Text, compare : (X, X) -> Order.Order)

public func merge(s1 : Cell<X>, s2 : Cell<X>) : Cell<X>

Create a "merge cell" from two cells

public func sort(s : Seq<X>) : Cell<X>

Create a "sort cell" from a sequence.

public func iter(s : Seq<X>) : Iter<X>

Iterate the sorted sequence.