A
- both function's input typeB
- the first function return typeC
- the second function return typepublic final class Both<A,B,C> extends Object implements Fn3<Fn1<? super A,? extends B>,Fn1<? super A,? extends C>,A,Tuple2<B,C>>
Modifier and Type | Method and Description |
---|---|
static <A,B,C> Both<A,B,C> |
both() |
static <A,B,C> Fn1<Fn1<? super A,? extends C>,Fn1<A,Tuple2<B,C>>> |
both(Fn1<? super A,? extends B> f) |
static <A,B,C> Fn1<A,Tuple2<B,C>> |
both(Fn1<? super A,? extends B> f,
Fn1<? super A,? extends C> g) |
static <A,B,C> Tuple2<B,C> |
both(Fn1<? super A,? extends B> f,
Fn1<? super A,? extends C> g,
A a) |
Tuple2<B,C> |
checkedApply(Fn1<? super A,? extends B> f,
Fn1<? super A,? extends C> g,
A a) |
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 Tuple2<B,C> checkedApply(Fn1<? super A,? extends B> f, Fn1<? super A,? extends C> g, A a)
public static <A,B,C> Both<A,B,C> both()
public static <A,B,C> Fn1<Fn1<? super A,? extends C>,Fn1<A,Tuple2<B,C>>> both(Fn1<? super A,? extends B> f)
public static <A,B,C> Fn1<A,Tuple2<B,C>> both(Fn1<? super A,? extends B> f, Fn1<? super A,? extends C> g)