Class RightAny<L,R>
java.lang.Object
com.jnape.palatable.lambda.monoid.builtin.RightAny<L,R>
- Type Parameters:
L- The left parameter typeR- The right parameter type
- All Implemented Interfaces:
Fn1<Monoid<R>, Fn1<Either<L,R>, Fn1<Either<L, R>, Either<L, R>>>>, Fn2<Monoid<R>, Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn3<Monoid<R>, Either<L, R>, Either<L, R>, Either<L, R>>, MonoidFactory<Monoid<R>, Either<L, R>>, SemigroupFactory<Monoid<R>, Either<L, R>>, Applicative<Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<Monoid<R>, ?>>, Cartesian<Monoid<R>, Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<?, ?>>, Cocartesian<Monoid<R>, Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<?, ?>>, Contravariant<Monoid<R>, Profunctor<?, Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<?, ?>>>, Functor<Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<Monoid<R>, ?>>, Profunctor<Monoid<R>, Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<?, ?>>, Monad<Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<Monoid<R>, ?>>, MonadReader<Monoid<R>, Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<Monoid<R>, ?>>, MonadRec<Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<Monoid<R>, ?>>, MonadWriter<Monoid<R>, Fn1<Either<L, R>, Fn1<Either<L, R>, Either<L, R>>>, Fn1<Monoid<R>, ?>>
A
Monoid instance formed by Either<L,R> and a monoid over R. The
application to two Either values is right-biased, such that for a given Either x and
y:
- if both
xandyare right values, the result is the application of the x and y values in terms of the provided monoid, wrapped inEither.right(R) - if only
xis a right value, the result isx - if only
yis a right value, the result isy - if neither
xnoryare right values, the result isy
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zipMethods inherited from interface Fn2
toBiFunctionMethods inherited from interface Fn3
apply, checkedApply, compose, contraMap, diMapL, discardR, flip, uncurry, widenMethods inherited from interface MonoidFactory
apply, applyMethods inherited from interface SemigroupFactory
checkedApply
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
RightAny
private RightAny()
-
-
Method Details
-
checkedApply
Description copied from interface:Fn2Invoke this function with the given argument, potentially throwing anyThrowable.- Specified by:
checkedApplyin interfaceFn1<L,R> - Specified by:
checkedApplyin interfaceFn2<Monoid<R>, Either<L,R>, Fn1<Either<L, R>, Either<L, R>>> - Specified by:
checkedApplyin interfaceMonoidFactory<L,R> - Specified by:
checkedApplyin interfaceSemigroupFactory<L,R> - Parameters:
rMonoid- the argument- Returns:
- the result of the function application
-
rightAny
-
rightAny
-
rightAny
-
rightAny
-