Class Sort<A extends Comparable<A>>

java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn1.Sort<A>
Type Parameters:
A - the input Iterable and output List element type
All Implemented Interfaces:
Fn1<Iterable<A>, List<A>>, Applicative<List<A>, Fn1<Iterable<A>, ?>>, Cartesian<Iterable<A>, List<A>, Fn1<?,?>>, Cocartesian<Iterable<A>, List<A>, Fn1<?,?>>, Contravariant<Iterable<A>, Profunctor<?,List<A>,Fn1<?,?>>>, Functor<List<A>, Fn1<Iterable<A>, ?>>, Profunctor<Iterable<A>, List<A>, Fn1<?,?>>, Monad<List<A>, Fn1<Iterable<A>, ?>>, MonadReader<Iterable<A>, List<A>, Fn1<Iterable<A>, ?>>, MonadRec<List<A>, Fn1<Iterable<A>, ?>>, MonadWriter<Iterable<A>, List<A>, Fn1<Iterable<A>, ?>>

public final class Sort<A extends Comparable<A>> extends Object implements Fn1<Iterable<A>, List<A>>
Given an Iterable of Comparable elements, return a List of the sorted elements. Note that this is both eager and monolithic.
See Also:
  • Field Details

    • INSTANCE

      private static final Sort<?> INSTANCE
  • Constructor Details

    • Sort

      private Sort()
  • Method Details