Uses of Interface
com.jnape.palatable.lambda.functions.Fn3
Packages that use Fn3
Package
Description
-
Uses of Fn3 in com.jnape.palatable.lambda.adt.product
Methods in com.jnape.palatable.lambda.adt.product with parameters of type Fn3 -
Uses of Fn3 in com.jnape.palatable.lambda.functions
Subinterfaces of Fn3 in com.jnape.palatable.lambda.functionsModifier and TypeInterfaceDescriptioninterface
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 Fn3Modifier and TypeMethodDescriptionPartially apply this function by taking its first argument.Partially apply this function by taking its first two arguments.Partially apply this function by taking its first three arguments.Partially apply this function by taking its first four arguments.Partially apply this function by taking its first five arguments.Right-to-left composition between different arity functions.Fn3.discardR
(Applicative<E, Fn1<A, ?>> appB) Fn3.flip()
Flip the order of the first two arguments.static <A,
B, C, D>
Fn3<A, B, C, D> static <A,
B, C, D>
Fn3<A, B, C, D> static <A,
B, C, D>
Fn3<A, B, C, D> Static factory method for coercing a lambda to anFn3
.Fn4.uncurry()
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 Fn3Modifier and TypeMethodDescriptionstatic <A,
B, C, D>
Fn3<A, B, C, D> Static factory method for coercing a lambda to anFn3
.static <A,
B, C, D, E>
Fn4<A, B, C, D, E> static <A,
B, C, D, E, F>
Fn5<A, B, C, D, E, F> static <A,
B, C, D, E, F, G>
Fn6<A, B, C, D, E, F, G> static <A,
B, C, D, E, F, G, H>
Fn7<A, B, C, D, E, F, G, H> static <A,
B, C, D, E, F, G, H, I>
Fn8<A, B, C, D, E, F, G, H, I> Method parameters in com.jnape.palatable.lambda.functions with type arguments of type Fn3 -
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn2
Classes in com.jnape.palatable.lambda.functions.builtin.fn2 that implement Fn3Modifier and TypeClassDescriptionfinal class
Both<A,
B, C> final class
Peek2<A,
B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>> Deprecated.Methods in com.jnape.palatable.lambda.functions.builtin.fn2 with parameters of type Fn3Modifier and TypeMethodDescriptionstatic <A,
B, C, D>
D -
Uses of Fn3 in com.jnape.palatable.lambda.functions.builtin.fn3
Classes in com.jnape.palatable.lambda.functions.builtin.fn3 that implement Fn3Modifier and TypeClassDescriptionfinal class
Between<A extends 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.final 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.final class
Clamp<A extends 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 valuefinal class
CmpEqBy<A,
B extends 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.final 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.final 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)
.final 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.final class
FoldRight<A,
B> final class
GTBy<A,
B extends 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.final class
GTEBy<A,
B extends 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.final 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.final 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.final 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.final class
LTBy<A,
B extends 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.final class
LTEBy<A,
B extends 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.final 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.final 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.final 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.final 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.final 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 Fn3Modifier and TypeClassDescriptionfinal class
IfThenElse<A,
B> final 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.final class
RateLimit<A>
Methods in com.jnape.palatable.lambda.functions.builtin.fn4 that return Fn3Modifier and TypeMethodDescriptionIfThenElse.ifThenElse
(Fn1<? super A, ? extends 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> Methods in com.jnape.palatable.lambda.functions.builtin.fn4 with parameters of type Fn3Modifier and TypeMethodDescriptionLiftA3.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> 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 Fn3Modifier and TypeClassDescriptionfinal 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 Fn3Modifier and TypeMethodDescriptionstatic <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 Fn3Modifier and TypeClassDescriptionfinal 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 Fn3Modifier and TypeMethodDescriptionstatic <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 Fn3Modifier and TypeClassDescriptionfinal 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 Fn3Modifier and TypeMethodDescriptionstatic <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 Fn3Modifier and TypeClassDescriptionfinal 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 Fn3Modifier and TypeMethodDescriptionstatic <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.specializedModifier and TypeInterfaceDescriptioninterface
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 Fn3Modifier and TypeClassDescriptionfinal class
AddAll<A,
C extends Collection<A>> TheMonoid
instance formed under mutative concatenation for an arbitraryCollection
.final class
Collapse<_1,
_2> final class
Compose<A>
final class
The monoid formed under monadic endomorphism.final class
LeftAll<L,
R> final class
LeftAny<L,
R> final 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
.final class
MergeMaps<K,
V> final class
Present<A>
final class
RightAll<L,
R> final class
RightAny<L,
R> final class
RunAll<A>
-
Uses of Fn3 in com.jnape.palatable.lambda.optics.functions
Classes in com.jnape.palatable.lambda.optics.functions that implement Fn3Modifier and TypeClassDescriptionfinal 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.final class
Set<S,
T, A, B> final 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 Fn3Modifier and TypeClassDescriptionfinal class
Absent<A>
final class
Collapse<_1,
_2> final class
Compose<A>
final class
LeftAll<L,
R> final class
LeftAny<L,
R> final class
MaxBy<A,
B extends 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
final 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
final class
Merge<L,
R> final class
MinBy<A,
B extends 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
final 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
final class
RightAll<L,
R> final class
RightAny<L,
R> final class
RunAll<A>
IO
from the givenBoundedBifunctor
and explicitly running it