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, wait
apply, apply, checkedApply, flip, uncurry
checkedApply
apply, apply, checkedApply, compose, contraMap, diMapL, discardR, fn4, fn4, fn4, fn4, widen
curried, curry, fn2, fromBiFunction, toBiFunction
public Monoid<Either<L,R>> checkedApply(Semigroup<L> lSemigroup, Monoid<R> rMonoid)
Fn3
checkedApply
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)