Uses of Interface
com.jnape.palatable.lambda.functions.Fn3
-
-
Uses of Fn3 in com.jnape.palatable.lambda.adt.product
Methods in com.jnape.palatable.lambda.adt.product with parameters of type Fn3 Modifier and Type Method Description default <R> R
Product3. into(Fn3<? super _1,? super _2,? super _3,? extends R> fn)
Destructure and apply this product to a function accepting the same number of arguments as this product's slots. -
Uses of Fn3 in com.jnape.palatable.lambda.functions
Subinterfaces of Fn3 in com.jnape.palatable.lambda.functions Modifier and Type Interface Description interface
Fn4<A,B,C,D,E>
A function taking four arguments.interface
Fn5<A,B,C,D,E,F>
A function taking five arguments.interface
Fn6<A,B,C,D,E,F,G>
A function taking six arguments.interface
Fn7<A,B,C,D,E,F,G,H>
A function taking seven arguments.interface
Fn8<A,B,C,D,E,F,G,H,I>
A function taking eight arguments.Methods in com.jnape.palatable.lambda.functions that return Fn3 Modifier and Type Method Description default Fn3<B,C,D,E>
Fn4. apply(A a)
Partially apply this function by taking its first argument.default Fn3<C,D,E,F>
Fn5. apply(A a, B b)
Partially apply this function by taking its first two arguments.default Fn3<D,E,F,G>
Fn6. apply(A a, B b, C c)
Partially apply this function by taking its first three arguments.default Fn3<E,F,G,H>
Fn7. apply(A a, B b, C c, D d)
Partially apply this function by taking its first four arguments.default Fn3<F,G,H,I>
Fn8. apply(A a, B b, C c, D d, E e)
Partially apply this function by taking its first five arguments.default <Y,Z>
Fn3<Y,Z,B,C>Fn2. compose(Fn2<? super Y,? super Z,? extends A> before)
Right-to-left composition between different arity functions.default <Z> Fn3<Z,B,C,D>
Fn3. contraMap(Fn1<? super Z,? extends A> fn)
default <Z> Fn3<Z,B,C,D>
Fn3. diMapL(Fn1<? super Z,? extends A> fn)
default <E> Fn3<A,B,C,D>
Fn3. discardR(Applicative<E,Fn1<A,?>> appB)
default Fn3<B,A,C,D>
Fn3. flip()
Flip the order of the first two arguments.static <A,B,C,D>
Fn3<A,B,C,D>Fn3. fn3(Fn1<A,Fn2<B,C,D>> curriedFn1)
static <A,B,C,D>
Fn3<A,B,C,D>Fn3. fn3(Fn2<A,B,Fn1<C,D>> curriedFn2)
static <A,B,C,D>
Fn3<A,B,C,D>Fn3. fn3(Fn3<A,B,C,D> fn)
Static factory method for coercing a lambda to anFn3
.default Fn3<? super Product2<? extends A,? extends B>,C,D,E>
Fn4. uncurry()
default <Z> Fn3<Z,A,B,C>
Fn2. widen()
Widen this function's argument list by prepending an ignored argument of any type to the front.Methods in com.jnape.palatable.lambda.functions with parameters of type Fn3 Modifier and Type Method Description static <A,B,C,D>
Fn3<A,B,C,D>Fn3. fn3(Fn3<A,B,C,D> fn)
Static factory method for coercing a lambda to anFn3
.static <A,B,C,D,E>
Fn4<A,B,C,D,E>Fn4. fn4(Fn3<A,B,C,Fn1<D,E>> curriedFn3)
static <A,B,C,D,E,F>
Fn5<A,B,C,D,E,F>Fn5. fn5(Fn3<A,B,C,Fn2<D,E,F>> curriedFn3)
static <A,B,C,D,E,F,G>
Fn6<A,B,C,D,E,F,G>Fn6. fn6(Fn3<A,B,C,Fn3<D,E,F,G>> curriedFn3)
static <A,B,C,D,E,F,G,H>
Fn7<A,B,C,D,E,F,G,H>Fn7. fn7(Fn3<A,B,C,Fn4<D,E,F,G,H>> curriedFn3)
static <A,B,C,D,E,F,G,H,I>
Fn8<A,B,C,D,E,F,G,H,I>Fn8. fn8(Fn3<A,B,C,Fn5<D,E,F,G,H,I>> curriedFn3)
Method parameters in com.jnape.palatable.lambda.functions with type arguments of type Fn3 Modifier and Type Method Description static <A,B,C,D,E>
Fn4<A,B,C,D,E>Fn4. fn4(Fn1<A,Fn3<B,C,D,E>> curriedFn1)
static <A,B,C,D,E,F>
Fn5<A,B,C,D,E,F>Fn5. fn5(Fn2<A,B,Fn3<C,D,E,F>> curriedFn2)
static <A,B,C,D,E,F,G>
Fn6<A,B,C,D,E,F,G>Fn6. fn6(Fn3<A,B,C,Fn3<D,E,F,G>> curriedFn3)
static <A,B,C,D,E,F,G,H>
Fn7<A,B,C,D,E,F,G,H>Fn7. fn7(Fn4<A,B,C,D,Fn3<E,F,G,H>> curriedFn4)
static <A,B,C,D,E,F,G,H,I>
Fn8<A,B,C,D,E,F,G,H,I>Fn8. fn8(Fn5<A,B,C,D,E,Fn3<F,G,H,I>> curriedFn5)
-
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn2
Classes in com.jnape.palatable.lambda.functions.builtin.fn2 that implement Fn3 Modifier and Type Class Description class
Both<A,B,C>
class
Peek2<A,B,FAB extends BoundedBifunctor<A,B,? super A,? super B,?>>
Deprecated.in favor of producing anIO
from the givenBoundedBifunctor
and explicitly running itMethods in com.jnape.palatable.lambda.functions.builtin.fn2 with parameters of type Fn3 Modifier and Type Method Description D
Into3. checkedApply(Fn3<? super A,? super B,? super C,? extends D> fn, Product3<A,B,C> product)
static <A,B,C,D>
Fn1<Product3<A,B,C>,D>Into3. into3(Fn3<? super A,? super B,? super C,? extends D> fn)
static <A,B,C,D>
DInto3. into3(Fn3<? super A,? super B,? super C,? extends D> fn, Product3<A,B,C> product)
-
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn3
Classes in com.jnape.palatable.lambda.functions.builtin.fn3 that implement Fn3 Modifier and Type Class Description class
Between<A extends java.lang.Comparable<A>>
Given two bounds and a value, return whether or not the value is greater than or equal to the lower bound and less than or equal to the upper bound.class
Bracket<A,B>
Given anIO
that yields some typeA
, a cleanup operation to run if a value of that type could be provisioned, and a kleisli arrow from that type to a newIO
of typeB
, produce an
that, when run, will provision theIO
<B>A
,flatMap
it toB
, and clean up the original value if it was produced in the first place.class
Clamp<A extends java.lang.Comparable<A>>
Given two bounds and a value, "clamp" the value between the bounds via the following algorithm: - if the value is strictly less than the lower bound, return the lower bound - if the value is strictly greater than the upper bound, return the upper bound - otherwise, return the valueclass
CmpEqBy<A,B extends java.lang.Comparable<B>>
Given a mapping function from some typeA
to someComparable
typeB
and two values of typeA
, returntrue
if the first value is strictly equal to the second value (according toComparable.compareTo(Object)
in terms of their mappedB
results; otherwise, return false.class
CmpEqWith<A>
Given aComparator
from some typeA
and two values of typeA
, returntrue
if the first value is strictly equal to the second value (according toComparator.compare(Object, Object)
otherwise, return false.class
Compare<A>
Given aComparator
from some typeA
and two values of typeA
, return aComparisonRelation
of the first value with reference to the second value (according toComparator.compare(Object, Object)
.class
FoldLeft<A,B>
Given anIterable
ofA
s, a starting valueB
, and a
, iteratively accumulate over theFn2
<B, A, B>Iterable
, ultimately returning a finalB
value.class
FoldRight<A,B>
class
GTBy<A,B extends java.lang.Comparable<B>>
Given a mapping function from some typeA
to someComparable
typeB
and two values of typeA
, returntrue
if the second value is strictly greater than the first value in terms of their mappedB
results; otherwise, return false.class
GTEBy<A,B extends java.lang.Comparable<B>>
Given a mapping function from some typeA
to someComparable
typeB
and two values of typeA
, returntrue
if the second value is greater than or equal to the first value in terms of their mappedB
results according toComparable.compareTo(Object)
; otherwise, return false.class
GTEWith<A>
Given aComparator
from some typeA
and two values of typeA
, returntrue
if the second value is greater than or equal to the first value in terms of their mappedB
results according toComparator.compare(Object, Object)
; otherwise, return false.class
GTWith<A>
Given aComparator
from some typeA
and two values of typeA
, returntrue
if the second value is strictly greater than the first value in terms of their mappedB
results; otherwise, return false.class
LiftA2<A,B,C,App extends Applicative<?,App>,AppC extends Applicative<C,App>>
Lift into and apply anFn2
to twoApplicative
values, returning the result inside the sameApplicative
context.class
LTBy<A,B extends java.lang.Comparable<B>>
Given a mapping function from some typeA
to someComparable
typeB
and two values of typeA
, returntrue
if the second value is strictly less than the first value in terms of their mappedB
results; otherwise, return false.class
LTEBy<A,B extends java.lang.Comparable<B>>
Given a mapping function from some typeA
to someComparable
typeB
and two values of typeA
, returntrue
if the second value is less than or equal to the first value in terms of their mappedB
results according toComparable.compareTo(Object)
; otherwise, return false.class
LTEWith<A>
Given aComparator
from some typeA
and two values of typeA
, returntrue
if the second value is less than or equal to the first value in terms of their mappedB
results according toComparator.compare(Object, Object)
; otherwise, return false.class
LTWith<A>
Given a comparator for some typeA
and two values of typeA
, returntrue
if the second value is strictly less than than the first value in terms of their mappedB
results; otherwise, return false.class
ScanLeft<A,B>
Given anIterable
ofA
s, a starting valueB
, and a
, iteratively accumulate over theFn2
<B, A, B>Iterable
, collecting each function application result, finally returning anIterable
of all the results.class
Times<A>
Given some number of timesn
to invoke a functionA -> A
, and given an inputA
, iteratively apply the function to the input, and then to the result of the invocation, a total ofn
times, returning the result.class
ZipWith<A,B,C>
Zip together twoIterable
s by applying a zipping function to the successive elements of eachIterable
until one of them runs out of elements. -
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn4
Classes in com.jnape.palatable.lambda.functions.builtin.fn4 that implement Fn3 Modifier and Type Class Description class
IfThenElse<A,B>
class
LiftA3<A,B,C,D,App extends Applicative<?,App>,AppD extends Applicative<D,App>>
Lift into and apply anFn3
to threeApplicative
values, returning the result inside the sameApplicative
context.class
RateLimit<A>
Methods in com.jnape.palatable.lambda.functions.builtin.fn4 that return Fn3 Modifier and Type Method Description static <A,B>
Fn3<Fn1<? super A,? extends B>,Fn1<? super A,? extends B>,A,B>IfThenElse. ifThenElse(Fn1<? super A,? extends java.lang.Boolean> predicate)
static <A,B,C,D,App extends Applicative<?,App>,AppD extends Applicative<D,App>>
Fn3<Applicative<A,App>,Applicative<B,App>,Applicative<C,App>,AppD>LiftA3. liftA3(Fn3<A,B,C,D> fn)
static <A> Fn3<java.lang.Long,java.time.Duration,java.lang.Iterable<A>,java.lang.Iterable<A>>
RateLimit. rateLimit(Fn0<java.time.Instant> instantFn0)
Methods in com.jnape.palatable.lambda.functions.builtin.fn4 with parameters of type Fn3 Modifier and Type Method Description AppD
LiftA3. checkedApply(Fn3<A,B,C,D> fn, Applicative<A,App> appA, Applicative<B,App> appB, Applicative<C,App> appC)
static <A,B,C,D,App extends Applicative<?,App>,AppD extends Applicative<D,App>>
Fn3<Applicative<A,App>,Applicative<B,App>,Applicative<C,App>,AppD>LiftA3. liftA3(Fn3<A,B,C,D> fn)
static <A,B,C,D,App extends Applicative<?,App>,AppD extends Applicative<D,App>>
Fn2<Applicative<B,App>,Applicative<C,App>,AppD>LiftA3. liftA3(Fn3<A,B,C,D> fn, Applicative<A,App> appA)
static <A,B,C,D,App extends Applicative<?,App>,AppD extends Applicative<D,App>>
Fn1<Applicative<C,App>,AppD>LiftA3. liftA3(Fn3<A,B,C,D> fn, Applicative<A,App> appA, Applicative<B,App> appB)
static <A,B,C,D,App extends Applicative<?,App>,AppD extends Applicative<D,App>>
AppDLiftA3. liftA3(Fn3<A,B,C,D> fn, Applicative<A,App> appA, Applicative<B,App> appB, Applicative<C,App> appC)
-
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn5
Classes in com.jnape.palatable.lambda.functions.builtin.fn5 that implement Fn3 Modifier and Type Class Description class
LiftA4<A,B,C,D,E,App extends Applicative<?,App>,AppE extends Applicative<E,App>>
Lift into and apply anFn4
to fourApplicative
values, returning the result inside the sameApplicative
context.Methods in com.jnape.palatable.lambda.functions.builtin.fn5 that return Fn3 Modifier and Type Method Description static <A,B,C,D,E,App extends Applicative<?,App>,AppE extends Applicative<E,App>>
Fn3<Applicative<B,App>,Applicative<C,App>,Applicative<D,App>,AppE>LiftA4. liftA4(Fn4<A,B,C,D,E> fn, Applicative<A,App> appA)
-
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn6
Classes in com.jnape.palatable.lambda.functions.builtin.fn6 that implement Fn3 Modifier and Type Class Description class
LiftA5<A,B,C,D,E,F,App extends Applicative<?,App>,AppF extends Applicative<F,App>>
Lift into and apply anFn5
to fiveApplicative
values, returning the result inside the sameApplicative
context.Methods in com.jnape.palatable.lambda.functions.builtin.fn6 that return Fn3 Modifier and Type Method Description static <A,B,C,D,E,F,App extends Applicative<?,App>,AppF extends Applicative<F,App>>
Fn3<Applicative<C,App>,Applicative<D,App>,Applicative<E,App>,AppF>LiftA5. liftA5(Fn5<A,B,C,D,E,F> fn, Applicative<A,App> appA, Applicative<B,App> appB)
-
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn7
Classes in com.jnape.palatable.lambda.functions.builtin.fn7 that implement Fn3 Modifier and Type Class Description class
LiftA6<A,B,C,D,E,F,G,App extends Applicative<?,App>,AppG extends Applicative<G,App>>
Lift into and apply anFn6
to sixApplicative
values, returning the result inside the sameApplicative
context.Methods in com.jnape.palatable.lambda.functions.builtin.fn7 that return Fn3 Modifier and Type Method Description static <A,B,C,D,E,F,G,App extends Applicative<?,App>,AppG extends Applicative<G,App>>
Fn3<Applicative<D,App>,Applicative<E,App>,Applicative<F,App>,AppG>LiftA6. liftA6(Fn6<A,B,C,D,E,F,G> fn, Applicative<A,App> appA, Applicative<B,App> appB, Applicative<C,App> appC)
-
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn8
Classes in com.jnape.palatable.lambda.functions.builtin.fn8 that implement Fn3 Modifier and Type Class Description class
LiftA7<A,B,C,D,E,F,G,H,App extends Applicative<?,App>,AppH extends Applicative<H,App>>
Lift into and apply anFn7
to sevenApplicative
values, returning the result inside the sameApplicative
context.Methods in com.jnape.palatable.lambda.functions.builtin.fn8 that return Fn3 Modifier and Type Method Description static <A,B,C,D,E,F,G,H,App extends Applicative<?,App>,AppH extends Applicative<H,App>>
Fn3<Applicative<E,App>,Applicative<F,App>,Applicative<G,App>,AppH>LiftA7. liftA7(Fn7<A,B,C,D,E,F,G,H> fn, Applicative<A,App> appA, Applicative<B,App> appB, Applicative<C,App> appC, Applicative<D,App> appD)
-
Uses of Fn3 in com.jnape.palatable.lambda.functions.specialized
Subinterfaces of Fn3 in com.jnape.palatable.lambda.functions.specialized Modifier and Type Interface Description interface
BiMonoidFactory<A,B,C>
interface
BiSemigroupFactory<A,B,C>
interface
MonoidFactory<A,B>
interface
SemigroupFactory<A,B>
-
Uses of Fn3 in com.jnape.palatable.lambda.monoid.builtin
Classes in com.jnape.palatable.lambda.monoid.builtin that implement Fn3 Modifier and Type Class Description class
AddAll<A,C extends java.util.Collection<A>>
TheMonoid
instance formed under mutative concatenation for an arbitraryCollection
.class
Collapse<_1,_2>
class
Compose<A>
class
EndoK<M extends MonadRec<?,M>,A,MA extends MonadRec<A,M>>
The monoid formed under monadic endomorphism.class
LeftAll<L,R>
class
LeftAny<L,R>
class
Merge<L,R>
AMonoid
instance formed byEither.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 overL
, and a monoid overR
.class
MergeMaps<K,V>
class
Present<A>
class
RightAll<L,R>
class
RightAny<L,R>
class
RunAll<A>
-
Uses of Fn3 in com.jnape.palatable.lambda.optics.functions
Classes in com.jnape.palatable.lambda.optics.functions that implement Fn3 Modifier and Type Class Description class
Over<S,T,A,B>
Given anOptic
, a function fromA
toB
, and a "larger" valueS
, produce aT
by retrieving theA
from theS
, applying the function, and updating theS
with theB
resulting from the function.class
Set<S,T,A,B>
class
Under<S,T,A,B>
-
Uses of Fn3 in com.jnape.palatable.lambda.semigroup.builtin
Classes in com.jnape.palatable.lambda.semigroup.builtin that implement Fn3 Modifier and Type Class Description class
Absent<A>
class
Collapse<_1,_2>
class
Compose<A>
class
LeftAll<L,R>
class
LeftAny<L,R>
class
MaxBy<A,B extends java.lang.Comparable<B>>
Given a mapping function from some typeA
to someComparable
typeB
, produce aSemigroup
overA
that chooses between two valuesx
andy
via the following rules: Ifx
is strictly less thany
in terms ofB
, returny
Otherwise, returnx
class
MaxWith<A>
Given a comparator for some typeA
, produce aSemigroup
overA
that chooses between two valuesx
andy
via the following rules: Ifx
is strictly less thany
in terms ofB
, returny
Otherwise, returnx
class
Merge<L,R>
class
MinBy<A,B extends java.lang.Comparable<B>>
Given a mapping function from some typeA
to someComparable
typeB
, produce aSemigroup
overA
that chooses between two valuesx
andy
via the following rules: Ifx
is strictly greater thany
in terms ofB
, returny
Otherwise, returnx
class
MinWith<A>
Given a comparator for some typeA
, produce aSemigroup
overA
that chooses between two valuesx
andy
via the following rules: Ifx
is strictly greater thany
in terms ofB
, returny
Otherwise, returnx
class
RightAll<L,R>
class
RightAny<L,R>
class
RunAll<A>
-