A
- the function's first argument typeB
- the function's second argument typeC
- the function's return typeApp
- the applicative witnessAppC
- the inferred applicative return typepublic final class LiftA2<A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> extends Object implements Fn3<Fn2<? super A,? super B,? extends C>,Applicative<A,App>,Applicative<B,App>,AppC>
Fn2
to two Applicative
values, returning the result inside the same
Applicative
context. Functionally equivalent to appB.zip(appA.fmap(fn))
.Applicative.zip(Applicative)
Modifier and Type | Method and Description |
---|---|
AppC |
checkedApply(Fn2<? super A,? super B,? extends C> fn,
Applicative<A,App> appA,
Applicative<B,App> appB) |
static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> |
liftA2() |
static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> |
liftA2(Fn2<? super A,? super B,? extends C> fn) |
static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> |
liftA2(Fn2<? super A,? super B,? extends C> fn,
Applicative<A,App> appA) |
static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> |
liftA2(Fn2<? super A,? super B,? extends C> fn,
Applicative<A,App> appA,
Applicative<B,App> appB) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, apply, checkedApply, compose, contraMap, diMapL, discardR, flip, fn3, fn3, fn3, uncurry, widen
checkedApply, curried, curry, fn2, fromBiFunction, toBiFunction
public AppC checkedApply(Fn2<? super A,? super B,? extends C> fn, Applicative<A,App> appA, Applicative<B,App> appB)
checkedApply
in interface Fn3<Fn2<? super A,? super B,? extends C>,Applicative<A,App extends Applicative<?,App>>,Applicative<B,App extends Applicative<?,App>>,AppC extends Applicative<C,App>>
public static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> LiftA2<A,B,C,App,AppC> liftA2()
public static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> Fn2<Applicative<A,App>,Applicative<B,App>,AppC> liftA2(Fn2<? super A,? super B,? extends C> fn)
public static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> Fn1<Applicative<B,App>,AppC> liftA2(Fn2<? super A,? super B,? extends C> fn, Applicative<A,App> appA)
public static <A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>> AppC liftA2(Fn2<? super A,? super B,? extends C> fn, Applicative<A,App> appA, Applicative<B,App> appB)