Class Min<A extends Comparable<A>>
java.lang.Object
com.jnape.palatable.lambda.semigroup.builtin.Min<A>
- Type Parameters:
A
- the value type
- All Implemented Interfaces:
Fn1<A,
,Fn1<A, A>> Fn2<A,
,A, A> Applicative<Fn1<A,
,A>, Fn1<A, ?>> Cartesian<A,
,Fn1<A, A>, Fn1<?, ?>> Cocartesian<A,
,Fn1<A, A>, Fn1<?, ?>> Contravariant<A,
,Profunctor<?, Fn1<A, A>, Fn1<?, ?>>> Functor<Fn1<A,
,A>, Fn1<A, ?>> Profunctor<A,
,Fn1<A, A>, Fn1<?, ?>> Monad<Fn1<A,
,A>, Fn1<A, ?>> MonadReader<A,
,Fn1<A, A>, Fn1<A, ?>> MonadRec<Fn1<A,
,A>, Fn1<A, ?>> MonadWriter<A,
,Fn1<A, A>, Fn1<A, ?>> Semigroup<A>
A
Semigroup
over A
that chooses between two values x
and y
via the
following rules:
- If
x
is strictly greater thany
, returny
- Otherwise, return
x
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckedApply
(A x, A y) static <A extends Comparable<A>>
Min<A> min()
static <A extends Comparable<A>>
Fn1<A, A> min
(A x) static <A extends Comparable<A>>
Amin
(A x, A y) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Min
private Min()
-
-
Method Details
-
checkedApply
- Specified by:
checkedApply
in interfaceFn2<A extends Comparable<A>,
A extends Comparable<A>, A extends Comparable<A>>
-
min
-
min
-
min
-