L - The left parameter typeR - The right parameter typepublic final class Merge<L,R> extends Object implements BiMonoidFactory<Semigroup<L>,Monoid<R>,Either<L,R>>
Monoid instance formed by Either.merge(com.jnape.palatable.lambda.functions.Fn2<? super L, ? super L, ? extends L>, com.jnape.palatable.lambda.functions.Fn2<? super R, ? super R, ? extends R>, com.jnape.palatable.lambda.adt.Either<L, R>...), a semigroup over L, and a monoid over
R. Like Either.merge(com.jnape.palatable.lambda.functions.Fn2<? super L, ? super L, ? extends L>, com.jnape.palatable.lambda.functions.Fn2<? super R, ? super R, ? extends R>, com.jnape.palatable.lambda.adt.Either<L, R>...), this is left-biased.
| Modifier and Type | Method and Description |
|---|---|
Monoid<Either<L,R>> |
checkedApply(Semigroup<L> lSemigroup,
Monoid<R> rMonoid) |
static <L,R> Merge<L,R> |
merge() |
static <L,R> MonoidFactory<Monoid<R>,Either<L,R>> |
merge(Semigroup<L> lSemigroup) |
static <L,R> Monoid<Either<L,R>> |
merge(Semigroup<L> lSemigroup,
Monoid<R> rMonoid) |
static <L,R> Fn1<Either<L,R>,Either<L,R>> |
merge(Semigroup<L> lSemigroup,
Monoid<R> rMonoid,
Either<L,R> x) |
static <L,R> Either<L,R> |
merge(Semigroup<L> lSemigroup,
Monoid<R> rMonoid,
Either<L,R> x,
Either<L,R> y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, apply, checkedApply, flip, uncurrycheckedApplyapply, apply, checkedApply, compose, contraMap, diMapL, discardR, fn4, fn4, fn4, fn4, widencurried, curry, fn2, fromBiFunction, toBiFunctionpublic Monoid<Either<L,R>> checkedApply(Semigroup<L> lSemigroup, Monoid<R> rMonoid)
Fn3checkedApply in interface Fn2<Semigroup<L>,Monoid<R>,Fn1<Either<L,R>,Fn1<Either<L,R>,Either<L,R>>>>checkedApply in interface Fn3<Semigroup<L>,Monoid<R>,Either<L,R>,Fn1<Either<L,R>,Either<L,R>>>checkedApply in interface BiMonoidFactory<Semigroup<L>,Monoid<R>,Either<L,R>>checkedApply in interface BiSemigroupFactory<Semigroup<L>,Monoid<R>,Either<L,R>>public static <L,R> Merge<L,R> merge()
public static <L,R> MonoidFactory<Monoid<R>,Either<L,R>> merge(Semigroup<L> lSemigroup)
public static <L,R> Fn1<Either<L,R>,Either<L,R>> merge(Semigroup<L> lSemigroup, Monoid<R> rMonoid, Either<L,R> x)