A
- the input Iterable and output List element typepublic final class Sort<A extends Comparable<A>> extends Object implements Fn1<Iterable<A>,List<A>>
Iterable
of Comparable
elements, return a List
of the sorted elements. Note that
this is both eager and monolithic.Modifier and Type | Method and Description |
---|---|
List<A> |
checkedApply(Iterable<A> as)
Invoke this function with the given argument, potentially throwing any
Throwable . |
static <A extends Comparable<A>> |
sort() |
static <A extends Comparable<A>> |
sort(Iterable<A> as) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, apply, carry, cartesian, censor, choose, cocartesian, compose, contraMap, diMap, diMapL, diMapR, discardL, discardR, flatMap, fmap, fn1, fromFunction, lazyZip, listens, local, pure, pureFn1, thunk, toFunction, trampolineM, widen, zip, zip
public List<A> checkedApply(Iterable<A> as)
Fn1
Throwable
.checkedApply
in interface Fn1<Iterable<A extends Comparable<A>>,List<A extends Comparable<A>>>
as
- the argumentpublic static <A extends Comparable<A>> Sort<A> sort()
public static <A extends Comparable<A>> List<A> sort(Iterable<A> as)