A
- The type of the left parameterB
- The type of the right parameterBF
- The unification parameter@FunctionalInterface public interface Bifunctor<A,B,BF extends Bifunctor<?,?,BF>> extends BoundedBifunctor<A,B,Object,Object,BF>
For more information, read about Bifunctors.
Functor
,
Profunctor
,
Tuple2
Modifier and Type | Method and Description |
---|---|
<C,D> Bifunctor<C,D,BF> |
biMap(Fn1<? super A,? extends C> lFn,
Fn1<? super B,? extends D> rFn)
Dually map covariantly over both the left and right parameters.
|
default <C> Bifunctor<C,B,BF> |
biMapL(Fn1<? super A,? extends C> fn)
Covariantly map over the left parameter.
|
default <C> Bifunctor<A,C,BF> |
biMapR(Fn1<? super B,? extends C> fn)
Covariantly map over the right parameter.
|
default <C> Bifunctor<C,B,BF> biMapL(Fn1<? super A,? extends C> fn)
default <C> Bifunctor<A,C,BF> biMapR(Fn1<? super B,? extends C> fn)
biMapR(f) == fmap(f)
.<C,D> Bifunctor<C,D,BF> biMap(Fn1<? super A,? extends C> lFn, Fn1<? super B,? extends D> rFn)
biMapL(lFn).biMapR(rFn)
.biMap
in interface BoundedBifunctor<A,B,Object,Object,BF extends Bifunctor<?,?,BF>>
C
- the new left parameter typeD
- the new right parameter typelFn
- the left parameter mapping functionrFn
- the right parameter mapping function