Package | Description |
---|---|
com.jnape.palatable.lambda.functor.builtin |
Modifier and Type | Method and Description |
---|---|
<B> Compose<F,G,B> |
Compose.discardL(Applicative<B,Compose<F,G,?>> appB)
Sequence both this
Applicative and appB , discarding this Applicative's
result and returning appB . |
<B> Compose<F,G,A> |
Compose.discardR(Applicative<B,Compose<F,G,?>> appB)
Sequence both this
Applicative and appB , discarding appB's result and
returning this Applicative . |
<B> Compose<F,G,B> |
Compose.fmap(Fn1<? super A,? extends B> fn)
Covariantly transmute this functor's parameter using the given mapping function.
|
<B> Compose<F,G,B> |
Compose.pure(B b)
Lift the value
b into this applicative functor. |
<B> Compose<F,G,B> |
Compose.zip(Applicative<Fn1<? super A,? extends B>,Compose<F,G,?>> appFn)
Given another instance of this applicative over a mapping function, "zip" the two instances together using
whatever application semantics the current applicative supports.
|
Modifier and Type | Method and Description |
---|---|
<B> Lazy<Compose<F,G,B>> |
Compose.lazyZip(Lazy<? extends Applicative<Fn1<? super A,? extends B>,Compose<F,G,?>>> lazyAppFn)
Given a
lazy instance of this applicative over a mapping function, "zip" the two instances together
using whatever application semantics the current applicative supports. |
static <F extends Applicative<?,F>,G extends Applicative<?,G>> |
Compose.pureCompose(Pure<F> pureF,
Pure<G> pureG)
|
Modifier and Type | Method and Description |
---|---|
<B> Compose<F,G,B> |
Compose.discardL(Applicative<B,Compose<F,G,?>> appB)
Sequence both this
Applicative and appB , discarding this Applicative's
result and returning appB . |
<B> Compose<F,G,A> |
Compose.discardR(Applicative<B,Compose<F,G,?>> appB)
Sequence both this
Applicative and appB , discarding appB's result and
returning this Applicative . |
<B> Lazy<Compose<F,G,B>> |
Compose.lazyZip(Lazy<? extends Applicative<Fn1<? super A,? extends B>,Compose<F,G,?>>> lazyAppFn)
Given a
lazy instance of this applicative over a mapping function, "zip" the two instances together
using whatever application semantics the current applicative supports. |
<B> Compose<F,G,B> |
Compose.zip(Applicative<Fn1<? super A,? extends B>,Compose<F,G,?>> appFn)
Given another instance of this applicative over a mapping function, "zip" the two instances together using
whatever application semantics the current applicative supports.
|