Uses of Interface
com.jnape.palatable.lambda.functions.Fn1
Packages that use Fn1
Package
Description
-
Uses of Fn1 in com.jnape.palatable.lambda.adt
Methods in com.jnape.palatable.lambda.adt with parameters of type Fn1Modifier and TypeMethodDescriptionfinal <L2,R2> Either <L2, R2> Dually map covariantly over both the left and right parameters.final <C,D> These <C, D> Dually map covariantly over both the left and right parameters.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Try.catching(Fn1<? super Throwable, ? extends Boolean> predicate, Fn1<? super Throwable, ? extends A> recoveryFn) Catch any thrownTsatisfyingpredicateand map it to a success value.Catch any instance ofthrowableTypeand map it to a success value.If this is a right value, applypredto it.If this is a right value, applypredto it.If this value is present and satisfiespredicate, returnjustthe value; otherwise, returnnothing.If a right value, unwrap it and apply it torightFn, returning the resultingEither<L ,R>.final <B> Maybe<B> Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.<B> Try<B> Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.final <B> Maybe<B> Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.<B> Try<B> Covariantly transmute this functor's parameter using the given mapping function.final LInverse of recover.final ThrowableIf this is a failure, return the wrapped value.<V> Vabstract <V> VGiven two mapping functions (one from anLto aV, one from anRto aV), unwrap the value stored in thisEither, apply the appropriate mapping function, and return the result.<V> V<R> R<R> R<R> RThese._A.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super Tuple2<A, B>, ? extends R> cFn) <R> RThese._B.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super Tuple2<A, B>, ? extends R> cFn) <R> RThese.Both.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super Tuple2<A, B>, ? extends R> cFn) <R> R<R> RReturn the wrapped value if this is a right; otherwise, map the wrapped left value to aTand throw it.If this is a success value, return it.Either.peek(Fn1<? super L, ? extends IO<?>> leftEffect, Fn1<? super R, ? extends IO<?>> rightEffect) Deprecated.final R"Recover" from a left value by applying a recoveryFn to the wrapped value and returning it in the case of a left value; otherwise, return the wrapped right value.final AIf this is a success, return the wrapped value.If this is a success, wrap the value in aEither.right(R)and return it.Either.trampolineM(Fn1<? super R, ? extends MonadRec<RecursiveResult<R, B>, Either<L, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Maybe<B> Maybe.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Maybe<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.These.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, These<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Try<B> Try.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Try<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.final <R2, App extends Applicative<?,App>, TravB extends Traversable<R2, Either<L, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravEither.traverse(Fn1<? super R, ? extends Applicative<R2, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.final <B, App extends Applicative<?,App>, TravB extends Traversable<B, Maybe<?>>, AppTrav extends Applicative<TravB, App>>
AppTravMaybe.traverse(Fn1<? super A, ? extends Applicative<B, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) <C, App extends Applicative<?,App>, TravC extends Traversable<C, These<A, ?>>, AppTrav extends Applicative<TravC, App>>
AppTravThese.traverse(Fn1<? super B, ? extends Applicative<C, App>> fn, Fn1<? super TravC, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<B, App extends Applicative<?,App>, TravB extends Traversable<B, Try<?>>, AppTrav extends Applicative<TravB, App>>
AppTravTry.traverse(Fn1<? super A, ? extends Applicative<B, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.static <L,R> Either <L, R> Attempt to execute theFn0, returning its result in a right value.Either.trying(SideEffect sideEffect, Fn1<? super Throwable, ? extends L> leftFn) Attempt to execute theSideEffect, returningUnitin a right value.static <A extends AutoCloseable, B extends AutoCloseable, C extends AutoCloseable, D>
Try<D> Try.withResources(Fn0<? extends A> fn0, Fn1<? super A, ? extends B> bFn, Fn1<? super B, ? extends C> cFn, Fn1<? super C, ? extends Try<? extends D>> fn) Convenience overload ofwithResourcesthat cascades two dependent resource creations via nested calls.static <A extends AutoCloseable, B extends AutoCloseable, C>
Try<C> Try.withResources(Fn0<? extends A> fn0, Fn1<? super A, ? extends B> bFn, Fn1<? super B, ? extends Try<? extends C>> fn) Convenience overload ofwithResourcesthat cascades dependent resource creation via nested calls.static <A extends AutoCloseable, B>
Try<B> Try.withResources(Fn0<? extends A> fn0, Fn1<? super A, ? extends Try<? extends B>> fn) Given aFn0<AutoCloseable>aSupplierand anFn1fn, applyfnto the result ofaSupplier, ensuring that the result has itsclosemethod invoked, regardless of the outcome.Method parameters in com.jnape.palatable.lambda.adt with type arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Terminate early if this is aMaybe.Nothing; otherwise, continue thezip.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.final <B> Maybe<B> Maybe.zip(Applicative<Fn1<? super A, ? extends B>, Maybe<?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.<B> Try<B> Try.zip(Applicative<Fn1<? super A, ? extends B>, Try<?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.adt.choice
Methods in com.jnape.palatable.lambda.adt.choice with parameters of type Fn1Modifier and TypeMethodDescriptionfinal <C,D> Choice2 <C, D> Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.<R> R<R> R<R> RChoice3._A.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn) <R> RChoice3._B.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn) <R> RChoice3._C.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn) <R> RChoice4._A.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn) <R> RChoice4._B.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn) <R> RChoice4._C.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn) <R> RChoice4._D.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn) <R> RChoice5._A.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn) <R> RChoice5._B.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn) <R> RChoice5._C.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn) <R> RChoice5._D.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn) <R> RChoice5._E.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn) <R> RChoice6._A.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn) <R> RChoice6._B.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn) <R> RChoice6._C.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn) <R> RChoice6._D.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn) <R> RChoice6._E.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn) <R> RChoice6._F.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn) <R> RChoice7._A.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) <R> RChoice7._B.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) <R> RChoice7._C.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) <R> RChoice7._D.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) <R> RChoice7._E.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) <R> RChoice7._F.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) <R> RChoice7._G.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) <R> RChoice8._A.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) <R> RChoice8._B.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) <R> RChoice8._C.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) <R> RChoice8._D.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) <R> RChoice8._E.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) <R> RChoice8._F.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) <R> RChoice8._G.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) <R> RChoice8._H.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) Choice2.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Choice2<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice3.trampolineM(Fn1<? super C, ? extends MonadRec<RecursiveResult<C, D>, Choice3<A, B, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice4.trampolineM(Fn1<? super D, ? extends MonadRec<RecursiveResult<D, E>, Choice4<A, B, C, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice5.trampolineM(Fn1<? super E, ? extends MonadRec<RecursiveResult<E, F>, Choice5<A, B, C, D, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice6.trampolineM(Fn1<? super F, ? extends MonadRec<RecursiveResult<F, G>, Choice6<A, B, C, D, E, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice7.trampolineM(Fn1<? super G, ? extends MonadRec<RecursiveResult<G, H>, Choice7<A, B, C, D, E, F, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Choice8.trampolineM(Fn1<? super H, ? extends MonadRec<RecursiveResult<H, I>, Choice8<A, B, C, D, E, F, G, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<C, App extends Applicative<?,App>, TravB extends Traversable<C, Choice2<A, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravChoice2.traverse(Fn1<? super B, ? extends Applicative<C, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<D, App extends Applicative<?,App>, TravB extends Traversable<D, Choice3<A, B, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravChoice3.traverse(Fn1<? super C, ? extends Applicative<D, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<E, App extends Applicative<?,App>, TravB extends Traversable<E, Choice4<A, B, C, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravChoice4.traverse(Fn1<? super D, ? extends Applicative<E, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<F, App extends Applicative<?,App>, TravB extends Traversable<F, Choice5<A, B, C, D, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravChoice5.traverse(Fn1<? super E, ? extends Applicative<F, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<G, App extends Applicative<?,App>, TravB extends Traversable<G, Choice6<A, B, C, D, E, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravChoice6.traverse(Fn1<? super F, ? extends Applicative<G, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<H, App extends Applicative<?,App>, TravB extends Traversable<H, Choice7<A, B, C, D, E, F, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravChoice7.traverse(Fn1<? super G, ? extends Applicative<H, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<I, App extends Applicative<?,App>, TravB extends Traversable<I, Choice8<A, B, C, D, E, F, G, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravChoice8.traverse(Fn1<? super H, ? extends Applicative<I, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.Method parameters in com.jnape.palatable.lambda.adt.choice with type arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Choice4.lazyZip(Lazy<? extends Applicative<Fn1<? super D, ? extends E>, Choice4<A, B, C, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Choice5.lazyZip(Lazy<? extends Applicative<Fn1<? super E, ? extends F>, Choice5<A, B, C, D, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Choice6.lazyZip(Lazy<? extends Applicative<Fn1<? super F, ? extends G>, Choice6<A, B, C, D, E, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Choice7.lazyZip(Lazy<? extends Applicative<Fn1<? super G, ? extends H>, Choice7<A, B, C, D, E, F, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Choice8.lazyZip(Lazy<? extends Applicative<Fn1<? super H, ? extends I>, Choice8<A, B, C, D, E, F, G, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.adt.coproduct
Methods in com.jnape.palatable.lambda.adt.coproduct with parameters of type Fn1Modifier and TypeMethodDescriptiondefault CoProduct2<A, B, ? extends CoProduct2<A, B, ?>> Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.default CoProduct3<A, B, C, ? extends CoProduct3<A, B, C, ?>> Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.default CoProduct4<A, B, C, D, ? extends CoProduct4<A, B, C, D, ?>> Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.default <R> REmbed this coproduct inside another value; that is, given morphisms from this coproduct toR, apply the appropriate morphism to this coproduct as a whole.default <R> RCoProduct3.embed(Fn1<? super CP3, ? extends R> aFn, Fn1<? super CP3, ? extends R> bFn, Fn1<? super CP3, ? extends R> cFn) Embed this coproduct inside another value; that is, given morphisms from this coproduct toR, apply the appropriate morphism to this coproduct as a whole.default <R> RCoProduct4.embed(Fn1<? super CP4, ? extends R> aFn, Fn1<? super CP4, ? extends R> bFn, Fn1<? super CP4, ? extends R> cFn, Fn1<? super CP4, ? extends R> dFn) Embed this coproduct inside another value; that is, given morphisms from this coproduct toR, apply the appropriate morphism to this coproduct as a whole.default <R> RCoProduct5.embed(Fn1<? super CP5, ? extends R> aFn, Fn1<? super CP5, ? extends R> bFn, Fn1<? super CP5, ? extends R> cFn, Fn1<? super CP5, ? extends R> dFn, Fn1<? super CP5, ? extends R> eFn) Embed this coproduct inside another value; that is, given morphisms from this coproduct toR, apply the appropriate morphism to this coproduct as a whole.default <R> RCoProduct6.embed(Fn1<? super CP6, ? extends R> aFn, Fn1<? super CP6, ? extends R> bFn, Fn1<? super CP6, ? extends R> cFn, Fn1<? super CP6, ? extends R> dFn, Fn1<? super CP6, ? extends R> eFn, Fn1<? super CP6, ? extends R> fFn) Embed this coproduct inside another value; that is, given morphisms from this coproduct toR, apply the appropriate morphism to this coproduct as a whole.default <R> RCoProduct7.embed(Fn1<? super CP7, ? extends R> aFn, Fn1<? super CP7, ? extends R> bFn, Fn1<? super CP7, ? extends R> cFn, Fn1<? super CP7, ? extends R> dFn, Fn1<? super CP7, ? extends R> eFn, Fn1<? super CP7, ? extends R> fFn, Fn1<? super CP7, ? extends R> gFn) Embed this coproduct inside another value; that is, given morphisms from this coproduct toR, apply the appropriate morphism to this coproduct as a whole.default <R> RCoProduct8.embed(Fn1<? super CP8, ? extends R> aFn, Fn1<? super CP8, ? extends R> bFn, Fn1<? super CP8, ? extends R> cFn, Fn1<? super CP8, ? extends R> dFn, Fn1<? super CP8, ? extends R> eFn, Fn1<? super CP8, ? extends R> fFn, Fn1<? super CP8, ? extends R> gFn, Fn1<? super CP8, ? extends R> hFn) Embed this coproduct inside another value; that is, given morphisms from this coproduct toR, apply the appropriate morphism to this coproduct as a whole.<R> RType-safe convergence requiring a match against all potential types.<R> RCoProduct3.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn) Type-safe convergence requiring a match against all potential types.<R> RCoProduct4.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn) Type-safe convergence requiring a match against all potential types.<R> RCoProduct5.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn) Type-safe convergence requiring a match against all potential types.<R> RCoProduct6.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn) Type-safe convergence requiring a match against all potential types.<R> RCoProduct7.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn) Type-safe convergence requiring a match against all potential types.<R> RCoProduct8.match(Fn1<? super A, ? extends R> aFn, Fn1<? super B, ? extends R> bFn, Fn1<? super C, ? extends R> cFn, Fn1<? super D, ? extends R> dFn, Fn1<? super E, ? extends R> eFn, Fn1<? super F, ? extends R> fFn, Fn1<? super G, ? extends R> gFn, Fn1<? super H, ? extends R> hFn) Type-safe convergence requiring a match against all potential types. -
Uses of Fn1 in com.jnape.palatable.lambda.adt.hlist
Methods in com.jnape.palatable.lambda.adt.hlist with parameters of type Fn1Modifier and TypeMethodDescription<_1Prime,_2Prime>
Tuple2<_1Prime, _2Prime> Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Dually map covariantly over both the left and right parameters.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the left parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Update the accumulated state.<_1Prime> SingletonHList<_1Prime> SingletonHList.flatMap(Fn1<? super _1, ? extends Monad<_1Prime, SingletonHList<?>>> f) Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.<_1Prime> SingletonHList<_1Prime> Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.<R> RApplyHList.HCons.head()tofnand return the result.Map the accumulation into a value and pair it with the current output.<_1Prime> SingletonHList<_1Prime> SingletonHList.trampolineM(Fn1<? super _1, ? extends MonadRec<RecursiveResult<_1, _1Prime>, SingletonHList<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple2.trampolineM(Fn1<? super _2, ? extends MonadRec<RecursiveResult<_2, _2Prime>, Tuple2<_1, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple3.trampolineM(Fn1<? super _3, ? extends MonadRec<RecursiveResult<_3, _3Prime>, Tuple3<_1, _2, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple4.trampolineM(Fn1<? super _4, ? extends MonadRec<RecursiveResult<_4, _4Prime>, Tuple4<_1, _2, _3, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple5.trampolineM(Fn1<? super _5, ? extends MonadRec<RecursiveResult<_5, _5Prime>, Tuple5<_1, _2, _3, _4, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple6.trampolineM(Fn1<? super _6, ? extends MonadRec<RecursiveResult<_6, _6Prime>, Tuple6<_1, _2, _3, _4, _5, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple7.trampolineM(Fn1<? super _7, ? extends MonadRec<RecursiveResult<_7, _7Prime>, Tuple7<_1, _2, _3, _4, _5, _6, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tuple8.trampolineM(Fn1<? super _8, ? extends MonadRec<RecursiveResult<_8, _8Prime>, Tuple8<_1, _2, _3, _4, _5, _6, _7, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B, App extends Applicative<?,App>, TravB extends Traversable<B, SingletonHList<?>>, AppTrav extends Applicative<TravB, App>>
AppTravSingletonHList.traverse(Fn1<? super _1, ? extends Applicative<B, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<_2Prime, App extends Applicative<?,App>, TravB extends Traversable<_2Prime, Tuple2<_1, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravTuple2.traverse(Fn1<? super _2, ? extends Applicative<_2Prime, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<_3Prime, App extends Applicative<?,App>, TravB extends Traversable<_3Prime, Tuple3<_1, _2, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravTuple3.traverse(Fn1<? super _3, ? extends Applicative<_3Prime, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<_4Prime, App extends Applicative<?,App>, TravB extends Traversable<_4Prime, Tuple4<_1, _2, _3, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravTuple4.traverse(Fn1<? super _4, ? extends Applicative<_4Prime, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<_5Prime, App extends Applicative<?,App>, TravB extends Traversable<_5Prime, Tuple5<_1, _2, _3, _4, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravTuple5.traverse(Fn1<? super _5, ? extends Applicative<_5Prime, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<_6Prime, App extends Applicative<?,App>, TravB extends Traversable<_6Prime, Tuple6<_1, _2, _3, _4, _5, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravTuple6.traverse(Fn1<? super _6, ? extends Applicative<_6Prime, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<_7Prime, App extends Applicative<?,App>, TravB extends Traversable<_7Prime, Tuple7<_1, _2, _3, _4, _5, _6, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravTuple7.traverse(Fn1<? super _7, ? extends Applicative<_7Prime, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<_8Prime, App extends Applicative<?,App>, TravB extends Traversable<_8Prime, Tuple8<_1, _2, _3, _4, _5, _6, _7, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravTuple8.traverse(Fn1<? super _8, ? extends Applicative<_8Prime, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.Method parameters in com.jnape.palatable.lambda.adt.hlist with type arguments of type Fn1Modifier and TypeMethodDescription<_1Prime> Lazy<SingletonHList<_1Prime>> SingletonHList.lazyZip(Lazy<? extends Applicative<Fn1<? super _1, ? extends _1Prime>, SingletonHList<?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Tuple2.lazyZip(Lazy<? extends Applicative<Fn1<? super _2, ? extends _2Prime>, Tuple2<_1, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Tuple3.lazyZip(Lazy<? extends Applicative<Fn1<? super _3, ? extends _3Prime>, Tuple3<_1, _2, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Tuple4.lazyZip(Lazy<? extends Applicative<Fn1<? super _4, ? extends _4Prime>, Tuple4<_1, _2, _3, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Tuple5.lazyZip(Lazy<? extends Applicative<Fn1<? super _5, ? extends _5Prime>, Tuple5<_1, _2, _3, _4, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Tuple6.lazyZip(Lazy<? extends Applicative<Fn1<? super _6, ? extends _6Prime>, Tuple6<_1, _2, _3, _4, _5, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Tuple7.lazyZip(Lazy<? extends Applicative<Fn1<? super _7, ? extends _7Prime>, Tuple7<_1, _2, _3, _4, _5, _6, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Tuple8.lazyZip(Lazy<? extends Applicative<Fn1<? super _8, ? extends _8Prime>, Tuple8<_1, _2, _3, _4, _5, _6, _7, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.<_1Prime> SingletonHList<_1Prime> SingletonHList.zip(Applicative<Fn1<? super _1, ? extends _1Prime>, SingletonHList<?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.functions
Subinterfaces of Fn1 in com.jnape.palatable.lambda.functionsModifier and TypeInterfaceDescriptioninterfaceEffect<A>A function returning "no result", and therefore only useful as a side-effect.interfaceFn0<A>interfaceFn2<A,B, C> A function taking two arguments.interfaceFn3<A,B, C, D> A function taking three arguments.interfaceFn4<A,B, C, D, E> A function taking four arguments.interfaceFn5<A,B, C, D, E, F> A function taking five arguments.interfaceFn6<A,B, C, D, E, F, G> A function taking six arguments.interfaceFn7<A,B, C, D, E, F, G, H> A function taking seven arguments.interfaceFn8<A,B, C, D, E, F, G, H, I> A function taking eight arguments.Subinterfaces with type arguments of type Fn1 in com.jnape.palatable.lambda.functionsModifier and TypeInterfaceDescriptioninterfaceFn1<A,B> A function taking a single argument.interfaceFn1<A,B> A function taking a single argument.interfaceFn1<A,B> A function taking a single argument.interfaceFn1<A,B> A function taking a single argument.interfaceFn1<A,B> A function taking a single argument.interfaceFn2<A,B, C> A function taking two arguments.interfaceFn3<A,B, C, D> A function taking three arguments.interfaceFn4<A,B, C, D, E> A function taking four arguments.interfaceFn5<A,B, C, D, E, F> A function taking five arguments.interfaceFn6<A,B, C, D, E, F, G> A function taking six arguments.interfaceFn7<A,B, C, D, E, F, G, H> A function taking seven arguments.interfaceFn8<A,B, C, D, E, F, G, H, I> A function taking eight arguments.Methods in com.jnape.palatable.lambda.functions that return Fn1Modifier and TypeMethodDescriptionPartially apply this function by passing 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.Partially apply this function by taking its first six arguments.Partially apply this function by taking its first seven arguments.Fn1.carry()Pair the covariantly-positioned carrier type with the contravariantly-positioned carrier type.Fn1.cartesian()Pair a value with the input to this function, and preserve the paired value through to the output.Update the accumulated state.Fn2.checkedApply(A a) Invoke this function with the given argument, potentially throwing anyThrowable.Fn3.checkedApply(A a, B b) Fn4.checkedApply(A a, B b, C c) Fn5.checkedApply(A a, B b, C c, D d) Fn1.choose()Choose between a successful resultbor returning back the input,a.Fn1.cocartesian()Choose between either applying this function or returning back a different result altogether.Contravariantly mapA <- B.default <Z,C> Fn1 <Z, C> Exercise bothdiMapLanddiMapRover this function in the same invocation.Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.Covariantly map over the return value of this function, producing a function that takes the same argument, and produces the new result type.Fn1.discardL(Applicative<C, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discarding thisApplicative'sresult and returningappB.Fn1.discardR(Applicative<C, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Chain dependent computations that may continue or short-circuit based on previous results.Left-to-right composition.static <A,B> Fn1 <A, B> Static factory method for avoid explicit casting when using method references asFn1s.static <A,B> Fn1 <A, B> Fn1.fromFunction(Function<? super A, ? extends B> function) Map the accumulation into a value and pair it with the current output.Modify thisMonadReader'senvironment after reading it but before running the effect.Fn1.pure(C c) Lift the valuebinto this applicative functor.Fn1.self()Fn1.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Fn1<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Fn2.uncurry()static <A,B> Fn1 <A, B> Construct anFn1that has a reference to itself in scope at the time it is executed (presumably for recursive invocations).Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Methods in com.jnape.palatable.lambda.functions that return types with arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Fn1.pureFn1()Methods in com.jnape.palatable.lambda.functions with parameters of type Fn1Modifier and TypeMethodDescriptionUpdate the accumulated state.default <Z> Effect<Z> Contravariantly mapA <- B.Contravariantly mapA <- B.Contravariantly mapA <- B.static <A,B, C> Fn2 <A, B, C> static <A,B, C> Fn2 <A, B, C> default <Z,C> Fn1 <Z, C> Exercise bothdiMapLanddiMapRover this function in the same invocation.default <Z> Effect<Z> Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.default <B> Fn0<B> Covariantly map over the return value of this function, producing a function that takes the same argument, and produces the new result type.static <A> Effect<A> default <B> Fn0<B> Chain dependent computations that may continue or short-circuit based on previous results.default <B> Fn0<B> Left-to-right composition.static <A> Fn0<A> static <A,B> Fn1 <A, B> Static factory method for avoid explicit casting when using method references asFn1s.static <A,B, C, D> Fn3 <A, B, C, D> 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> Map the accumulation into a value and pair it with the current output.Modify thisMonadReader'senvironment after reading it but before running the effect.Fn1.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Fn1<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Method parameters in com.jnape.palatable.lambda.functions with type arguments of type Fn1Modifier and TypeMethodDescriptionstatic <A,B, C> Fn2 <A, B, C> default <B> Fn0<B> Fn0.discardL(Applicative<B, Fn1<Unit, ?>> appB) Fn1.discardL(Applicative<C, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discarding thisApplicative'sresult and returningappB.Effect.discardR(Applicative<C, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Fn0.discardR(Applicative<B, Fn1<Unit, ?>> appB) Fn1.discardR(Applicative<C, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Fn2.discardR(Applicative<D, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Fn3.discardR(Applicative<E, Fn1<A, ?>> appB) Fn4.discardR(Applicative<F, Fn1<A, ?>> appB) Fn5.discardR(Applicative<G, Fn1<A, ?>> appB) Fn6.discardR(Applicative<H, Fn1<A, ?>> appB) Fn7.discardR(Applicative<I, Fn1<A, ?>> appB) Fn8.discardR(Applicative<J, Fn1<A, ?>> appB) default <B> Fn0<B> Chain dependent computations that may continue or short-circuit based on previous results.static <A,B, C, D> Fn3 <A, B, C, D> 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> Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Fn1.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Fn1<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.static <A,B> Fn1 <A, B> Construct anFn1that has a reference to itself in scope at the time it is executed (presumably for recursive invocations).default <B> Fn0<B> default <B> Fn0<B> Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn1
Classes in com.jnape.palatable.lambda.functions.builtin.fn1 that implement Fn1Modifier and TypeClassDescriptionfinal classCatMaybes<A>final classCoalesce<L,R> final classConstantly<A,B> A function that takes two arguments and always returns the first argument.final classCycle<A>Given anIterable, return an infiniteIterablethat repeatedly cycles its elements, in order.final classDistinct<A>final classDowncast<A extends B, B>Covariantly cast a value of typeBto a value of subtypeA.final classEmpty<A>A predicate that returns true ifasis empty; false otherwise.final classFlatten<A>final classForce<A>Deprecated.in favor oftraversinginto anIOand running itfinal classHead<A>final classId<A>The identity function.final classInit<A>final classInits<A>final classLast<A>final classMagnetize<A>final classNot<A>Negate a predicate function.final classOccurrences<A>final classRepeat<A>Given a value, return an infiniteIterablethat repeatedly iterates that value.final classReverse<A>Given anIterable, return a reversed representation of thatIterable.final classfinal classSort<A extends Comparable<A>>final classTail<A>Returns the tail of anIterable; the is, anIterableof all the elements except for the head element.final classTails<A>final classUncons<A>final classUpcast<A extends B, B>Upcast a value of typeBto a value of typeAthatBextends.Classes in com.jnape.palatable.lambda.functions.builtin.fn1 that implement interfaces with type arguments of type Fn1Methods in com.jnape.palatable.lambda.functions.builtin.fn1 that return Fn1Methods in com.jnape.palatable.lambda.functions.builtin.fn1 with parameters of type Fn1 -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn2
Classes in com.jnape.palatable.lambda.functions.builtin.fn2 that implement Fn1Modifier and TypeClassDescriptionfinal class$<A,B> final classAll<A>Eagerly apply a predicate to each element in anIterable, returningtrueif every element satisfies the predicate, andfalseotherwise.final classAlter<A>final classAny<A>Eagerly apply a predicate to each element in anIterable, returningtrueif any element satisfies the predicate, andfalseotherwise.final classAutoBracket<A extends AutoCloseable, B>Given anIOyielding someAutoCloseabletypeAand a kleisli arrow from that type to a newIOof typeB, attempt to provision theA, applying the body operation if provisioning was successful and ensuring thatAutoCloseable.close()is called regardless of whether the body succeeds or fails.final classBoth<A,B, C> final classCartesianProduct<A,B> Lazily compute the cartesian product of anIterable<A>andIterable<B>, returning anIterable<Tuple2<A, B>>, the products as tuples of multiplicandAs and multiplierBs.final classCmpEq<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the first value is strictly equal to the second value (according toComparable.compareTo(Object); otherwise, return false.final classCons<A>Prepend an element to anIterable.final classDifference<A>final classDrop<A>Lazily skip the firstnelements from anIterableby returning anIterablethat begins iteration after thenthelement.final classDropWhile<A>Lazily limit theIterableby skipping the first contiguous group of elements that satisfy the predicate, beginning iteration at the first element for which the predicate evaluates tofalse.final classEq<A>Type-safe equality in function form; usesObject.equals(Object), not==.final classFilter<A>Lazily apply a predicate to each element in anIterable, returning anIterableof just the elements for which the predicate evaluated totrue.final classFind<A>Iterate the elements in anIterable, applying a predicate to each one, returning the first element that matches the predicate, wrapped in aMaybe.final classGroupBy<K,V> Given anIterable<V>vsand a key functionV -> Kf, foldvsinto aMap<K, List<V>>by applyingfto each element ofvs, retaining values that map to the same key in a list, in the order they were iterated in.final classGT<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is strictly greater than the first value; otherwise, return false.final classGTE<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is greater than or equal to the first value according toComparable.compareTo(Object); otherwise, return false.final classInGroupsOf<A>Lazily group theIterableby returning anIterableof smallerIterables of sizek.final classIntersperse<A>Lazily inject the provided separator value between each value in the suppliedIterable.final classInto<A,B, C> final classInto1<A,B> Given anand aFn1<A, B>, pop the head and apply it to the function, returning the result.SingletonHList<A>final classInto3<A,B, C, D> final classInto4<A,B, C, D, E> final classInto5<A,B, C, D, E, F> final classInto6<A,B, C, D, E, F, G> final classInto7<A,B, C, D, E, F, G, H> final classInto8<A,B, C, D, E, F, G, H, I> final classIterate<A>final classLazyRec<A,B> final classLT<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is strictly less than the first value; otherwise, return false.final classLTE<A extends Comparable<A>>Given twoComparablevalues of typeA, returntrueif the second value is less than or equal to the first value according toComparable.compareTo(Object)otherwise, return false.final classMagnetizeBy<A>final classMap<A,B> Lazily apply a function to each element in anIterable, producing anIterableof the mapped results.final classPartition<A,B, C> Given anIterable<A>asand a disjoint mapping functiona -> CoProduct2<A, B>, return aTuple2over the lazily unwrapped leftAand rightBvalues in the first and second slots, respectively.final classfinal classPeek2<A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>Deprecated.in favor of producing anIOfrom the givenBoundedBifunctorand explicitly running itfinal classPrependAll<A>Lazily prepend each value with of theIterablewith the supplied separator value.final classReduceLeft<A>final classReduceRight<A>final classReplicate<A>Produce anIterableof a valuentimes.final classSequence<A, App extends Applicative<?,App>, Trav extends Traversable<?, Trav>, TravA extends Traversable<A, Trav>, AppTrav extends Applicative<TravA, App>> Given aTraversableofApplicatives and a pureApplicativeconstructor, traverse the elements from left to right, zipping theApplicatives together and collecting the results.final classSlide<A>final classSnoc<A>final classSortBy<A, B extends Comparable<B>>Given anIterableand some mapping function from theIterableelement type to someComparabletype, produce a sortedListof the original elements based on sorting applied to the result of the mapping function.final classSortWith<A>Given anIterableand aComparatorover theIterableelement type, produce a sortedListof the original elements based on sorting applied by theComparator.final classSpan<A>final classTake<A>Lazily limit theIterabletonelements by returning anIterablethat stops iteration after thenthelement, or the last element of theIterable, whichever comes first.final classTakeWhile<A>Lazily limit theIterableto the first group of contiguous elements that satisfy the predicate by iterating up to, but not including, the first element for which the predicate evaluates tofalse.final classToArray<A>Write all the elements of anIterabledirectly into an array of the specified type.final classToCollection<A, C extends Collection<A>>Given anFn0of someCollectionC, create an instance ofCand add all of the elements in the providedIterableto the instance.final classfinal classTupler2<A,B> Creates aTuple2from two values.final classUnfoldr<A,B> final classUntil<A>Given apredicate functionfor a value of some typeAand anIOthat yields a value of typeA, produce anIOthat repeatedly executes the originalIOuntil the predicate returns true when applied to the yielded value.final classZip<A,B> Zip together twoIterables into a singleIterableofTuple2<A, B>.Classes in com.jnape.palatable.lambda.functions.builtin.fn2 that implement interfaces with type arguments of type Fn1Modifier and TypeClassDescriptionfinal class$<A,B> final classAll<A>Eagerly apply a predicate to each element in anIterable, returningtrueif every element satisfies the predicate, andfalseotherwise.final classAlter<A>final classAny<A>Eagerly apply a predicate to each element in anIterable, returningtrueif any element satisfies the predicate, andfalseotherwise.final classAutoBracket<A extends AutoCloseable, B>Given anIOyielding someAutoCloseabletypeAand a kleisli arrow from that type to a newIOof typeB, attempt to provision theA, applying the body operation if provisioning was successful and ensuring thatAutoCloseable.close()is called regardless of whether the body succeeds or fails.final classBoth<A,B, C> final classBoth<A,B, C> final classDropWhile<A>Lazily limit theIterableby skipping the first contiguous group of elements that satisfy the predicate, beginning iteration at the first element for which the predicate evaluates tofalse.final classFilter<A>Lazily apply a predicate to each element in anIterable, returning anIterableof just the elements for which the predicate evaluated totrue.final classFind<A>Iterate the elements in anIterable, applying a predicate to each one, returning the first element that matches the predicate, wrapped in aMaybe.final classGroupBy<K,V> Given anIterable<V>vsand a key functionV -> Kf, foldvsinto aMap<K, List<V>>by applyingfto each element ofvs, retaining values that map to the same key in a list, in the order they were iterated in.final classInto1<A,B> Given anand aFn1<A, B>, pop the head and apply it to the function, returning the result.SingletonHList<A>final classIterate<A>final classMap<A,B> Lazily apply a function to each element in anIterable, producing anIterableof the mapped results.final classPartition<A,B, C> Given anIterable<A>asand a disjoint mapping functiona -> CoProduct2<A, B>, return aTuple2over the lazily unwrapped leftAand rightBvalues in the first and second slots, respectively.final classfinal classPeek2<A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>Deprecated.in favor of producing anIOfrom the givenBoundedBifunctorand explicitly running itfinal classPeek2<A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>Deprecated.in favor of producing anIOfrom the givenBoundedBifunctorand explicitly running itfinal classSequence<A, App extends Applicative<?,App>, Trav extends Traversable<?, Trav>, TravA extends Traversable<A, Trav>, AppTrav extends Applicative<TravA, App>> Given aTraversableofApplicatives and a pureApplicativeconstructor, traverse the elements from left to right, zipping theApplicatives together and collecting the results.final classSortBy<A, B extends Comparable<B>>Given anIterableand some mapping function from theIterableelement type to someComparabletype, produce a sortedListof the original elements based on sorting applied to the result of the mapping function.final classSpan<A>final classTakeWhile<A>Lazily limit theIterableto the first group of contiguous elements that satisfy the predicate by iterating up to, but not including, the first element for which the predicate evaluates tofalse.final classUnfoldr<A,B> final classUntil<A>Given apredicate functionfor a value of some typeAand anIOthat yields a value of typeA, produce anIOthat repeatedly executes the originalIOuntil the predicate returns true when applied to the yielded value.Methods in com.jnape.palatable.lambda.functions.builtin.fn2 that return Fn1Modifier and TypeMethodDescriptionstatic <A,B> Fn1 <A, B> static <A extends AutoCloseable, B>
Fn1<Fn1<? super A, ? extends IO<B>>, IO<B>> AutoBracket.autoBracket(IO<A> io) CartesianProduct.cartesianProduct(Iterable<A> as) Cons.cons(A a) Difference.difference(Iterable<A> xs) Drop.drop(int n) InGroupsOf.inGroupsOf(Integer k) Intersperse.intersperse(A a) static <A,B> Fn1 <SingletonHList<A>, B> Into7.into7(Fn7<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? extends H> fn) Into8.into8(Fn8<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? extends I> fn) MagnetizeBy.magnetizeBy(Fn2<? super A, ? super A, ? extends Boolean> predicate) Partition.partition(Fn1<? super A, ? extends CoProduct2<B, C, ?>> function) Deprecated.static <A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>
Fn1<FAB, FAB> Deprecated.PrependAll.prependAll(A a) ReduceLeft.reduceLeft(Fn2<? super A, ? super A, ? extends A> fn) ReduceRight.reduceRight(Fn2<? super A, ? super A, ? extends A> fn) static <A, App extends Applicative<?,App>, Trav extends Traversable<?, Trav>, TravA extends Traversable<A, Trav>, AppTrav extends Applicative<TravA, App>>
Fn1<Fn1<TravA, ? extends AppTrav>, AppTrav> Sequence.sequence(Traversable<? extends Applicative<A, App>, Trav> traversable) static <A, App extends Applicative<?,App>, AppIterable extends Applicative<Iterable<A>, App>>
Fn1<Fn1<Iterable<A>, ? extends AppIterable>, AppIterable> Sequence.sequence(Iterable<? extends Applicative<A, App>> iterableApp) static <A, B, App extends Applicative<?,App>, AppMap extends Applicative<Map<A, B>, App>>
Fn1<Fn1<Map<A, B>, ? extends AppMap>, AppMap> Sequence.sequence(Map<A, ? extends Applicative<B, App>> mapApp) Snoc.snoc(A a) static <A, B extends Comparable<B>>
Fn1<Iterable<A>, List<A>> SortWith.sortWith(Comparator<? super A> comparator) Take.take(int n) static <A, C extends Collection<A>>
Fn1<Iterable<A>, C> ToCollection.toCollection(Fn0<C> cFn0) Tupler2.tupler(A a) Methods in com.jnape.palatable.lambda.functions.builtin.fn2 that return types with arguments of type Fn1Modifier and TypeMethodDescriptionstatic <A extends AutoCloseable, B>
Fn1<Fn1<? super A, ? extends IO<B>>, IO<B>> AutoBracket.autoBracket(IO<A> io) static <A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>
Fn2<Fn1<? super B, ? extends IO<?>>, FAB, FAB> Deprecated.static <A, App extends Applicative<?,App>, Trav extends Traversable<?, Trav>, TravA extends Traversable<A, Trav>, AppTrav extends Applicative<TravA, App>>
Fn1<Fn1<TravA, ? extends AppTrav>, AppTrav> Sequence.sequence(Traversable<? extends Applicative<A, App>, Trav> traversable) static <A, App extends Applicative<?,App>, AppIterable extends Applicative<Iterable<A>, App>>
Fn1<Fn1<Iterable<A>, ? extends AppIterable>, AppIterable> Sequence.sequence(Iterable<? extends Applicative<A, App>> iterableApp) static <A, B, App extends Applicative<?,App>, AppMap extends Applicative<Map<A, B>, App>>
Fn1<Fn1<Map<A, B>, ? extends AppMap>, AppMap> Sequence.sequence(Map<A, ? extends Applicative<B, App>> mapApp) Methods in com.jnape.palatable.lambda.functions.builtin.fn2 with parameters of type Fn1Modifier and TypeMethodDescriptionstatic <A,B> Fn1 <A, B> static <A,B> B static <A> Booleanstatic <A> Booleanstatic <A extends AutoCloseable, B>
IO<B> AutoBracket.autoBracket(IO<A> io, Fn1<? super A, ? extends IO<B>> bodyIO) static <A,B, C> Tuple2 <B, C> $.checkedApply(Fn1<? super A, ? extends B> fn, A a) Alter.checkedApply(Fn1<? super A, ? extends IO<?>> effect, A a) Into1.checkedApply(Fn1<? super A, ? extends B> fn, SingletonHList<A> singletonHList) Iterate.checkedApply(Fn1<? super A, ? extends A> fn, A seed) Partition.checkedApply(Fn1<? super A, ? extends CoProduct2<B, C, ?>> function, Iterable<A> as) Peek.checkedApply(Fn1<? super A, ? extends IO<?>> effect, FA fa) Deprecated.Peek2.checkedApply(Fn1<? super A, ? extends IO<?>> effectA, Fn1<? super B, ? extends IO<?>> effectB, FAB fab) Deprecated.Sequence.checkedApply(Traversable<? extends Applicative<A, App>, Trav> traversable, Fn1<TravA, ? extends AppTrav> pure) static <A> Iterable<A> static <A> Iterable<A> static <A> Maybe<A> static <A,B> Fn1 <SingletonHList<A>, B> static <A,B> B Into1.into1(Fn1<? super A, ? extends B> fn, SingletonHList<A> singletonHList) static <A> Iterable<A> static <A,B> Iterable <B> Partition.partition(Fn1<? super A, ? extends CoProduct2<B, C, ?>> function) Partition.partition(Fn1<? super A, ? extends CoProduct2<B, C, ?>> function, Iterable<A> as) Deprecated.static <A, FA extends Functor<A,?>>
FADeprecated.static <A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>
Fn2<Fn1<? super B, ? extends IO<?>>, FAB, FAB> Deprecated.static <A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>
Fn1<FAB, FAB> Deprecated.static <A, B, FAB extends BoundedBifunctor<A, B, ? super A, ? super B, ?>>
FABPeek2.peek2(Fn1<? super A, ? extends IO<?>> effectA, Fn1<? super B, ? extends IO<?>> effectB, FAB fab) Deprecated.static <A, App extends Applicative<?,App>, Trav extends Traversable<?, Trav>, TravA extends Traversable<A, Trav>, AppTrav extends Applicative<TravA, App>>
AppTravSequence.sequence(Traversable<? extends Applicative<A, App>, Trav> traversable, Fn1<TravA, ? extends AppTrav> pure) static <A, App extends Applicative<?,App>, AppIterable extends Applicative<Iterable<A>, App>>
AppIterableSequence.sequence(Iterable<? extends Applicative<A, App>> iterableApp, Fn1<Iterable<A>, ? extends AppIterable> pure) static <A, B, App extends Applicative<?,App>, AppMap extends Applicative<Map<A, B>, App>>
AppMapSequence.sequence(Map<A, ? extends Applicative<B, App>> mapApp, Fn1<Map<A, B>, ? extends AppMap> pure) static <A, B extends Comparable<B>>
Fn1<Iterable<A>, List<A>> static <A, B extends Comparable<B>>
List<A> static <A> Iterable<A> static <A,B> Iterable <A> static <A> IO<A> -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn3
Classes in com.jnape.palatable.lambda.functions.builtin.fn3 that implement Fn1Modifier and TypeClassDescriptionfinal classBetween<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 classBracket<A,B> Given anIOthat 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 newIOof typeB, produce anthat, when run, will provision theIO<B>A,flatMapit toB, and clean up the original value if it was produced in the first place.final classClamp<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 classCmpEqBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the first value is strictly equal to the second value (according toComparable.compareTo(Object)in terms of their mappedBresults; otherwise, return false.final classCmpEqWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the first value is strictly equal to the second value (according toComparator.compare(Object, Object)otherwise, return false.final classCompare<A>Given aComparatorfrom some typeAand two values of typeA, return aComparisonRelationof the first value with reference to the second value (according toComparator.compare(Object, Object).final classFoldLeft<A,B> Given anIterableofAs, a starting valueB, and a, iteratively accumulate over theFn2<B, A, B>Iterable, ultimately returning a finalBvalue.final classFoldRight<A,B> final classGTBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is strictly greater than the first value in terms of their mappedBresults; otherwise, return false.final classGTEBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is greater than or equal to the first value in terms of their mappedBresults according toComparable.compareTo(Object); otherwise, return false.final classGTEWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the second value is greater than or equal to the first value in terms of their mappedBresults according toComparator.compare(Object, Object); otherwise, return false.final classGTWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the second value is strictly greater than the first value in terms of their mappedBresults; otherwise, return false.final classLiftA2<A, B, C, App extends Applicative<?,App>, AppC extends Applicative<C, App>> Lift into and apply anFn2to twoApplicativevalues, returning the result inside the sameApplicativecontext.final classLTBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is strictly less than the first value in terms of their mappedBresults; otherwise, return false.final classLTEBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is less than or equal to the first value in terms of their mappedBresults according toComparable.compareTo(Object); otherwise, return false.final classLTEWith<A>Given aComparatorfrom some typeAand two values of typeA, returntrueif the second value is less than or equal to the first value in terms of their mappedBresults according toComparator.compare(Object, Object); otherwise, return false.final classLTWith<A>Given a comparator for some typeAand two values of typeA, returntrueif the second value is strictly less than than the first value in terms of their mappedBresults; otherwise, return false.final classScanLeft<A,B> Given anIterableofAs, a starting valueB, and a, iteratively accumulate over theFn2<B, A, B>Iterable, collecting each function application result, finally returning anIterableof all the results.final classTimes<A>Given some number of timesnto 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 ofntimes, returning the result.final classZipWith<A,B, C> Zip together twoIterables by applying a zipping function to the successive elements of eachIterableuntil one of them runs out of elements.Classes in com.jnape.palatable.lambda.functions.builtin.fn3 that implement interfaces with type arguments of type Fn1Modifier and TypeClassDescriptionfinal classBracket<A,B> Given anIOthat 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 newIOof typeB, produce anthat, when run, will provision theIO<B>A,flatMapit toB, and clean up the original value if it was produced in the first place.final classBracket<A,B> Given anIOthat 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 newIOof typeB, produce anthat, when run, will provision theIO<B>A,flatMapit toB, and clean up the original value if it was produced in the first place.final classCmpEqBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the first value is strictly equal to the second value (according toComparable.compareTo(Object)in terms of their mappedBresults; otherwise, return false.final classGTBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is strictly greater than the first value in terms of their mappedBresults; otherwise, return false.final classGTEBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is greater than or equal to the first value in terms of their mappedBresults according toComparable.compareTo(Object); otherwise, return false.final classLTBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is strictly less than the first value in terms of their mappedBresults; otherwise, return false.final classLTEBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeBand two values of typeA, returntrueif the second value is less than or equal to the first value in terms of their mappedBresults according toComparable.compareTo(Object); otherwise, return false.final classTimes<A>Given some number of timesnto 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 ofntimes, returning the result.Methods in com.jnape.palatable.lambda.functions.builtin.fn3 that return Fn1Modifier and TypeMethodDescriptionstatic <A extends Comparable<A>>
Fn1<A, A> Clamp.clamp(A lower, A upper) static <A> Fn1<A, ComparisonRelation> Compare.compare(Comparator<A> comparator, A a) static <A, B, C, App extends Applicative<?,App>, AppC extends Applicative<C, App>>
Fn1<Applicative<B, App>, AppC> LiftA2.liftA2(Fn2<? super A, ? super B, ? extends C> fn, Applicative<A, App> appA) static <A> Fn1<A, A> Methods in com.jnape.palatable.lambda.functions.builtin.fn3 that return types with arguments of type Fn1Modifier and TypeMethodDescriptionMethods in com.jnape.palatable.lambda.functions.builtin.fn3 with parameters of type Fn1Modifier and TypeMethodDescriptionstatic <A,B> IO <B> Bracket.bracket(IO<A> io, Fn1<? super A, ? extends IO<?>> cleanupIO, Fn1<? super A, ? extends IO<B>> bodyIO) Bracket.checkedApply(IO<A> io, Fn1<? super A, ? extends IO<?>> cleanupIO, Fn1<? super A, ? extends IO<B>> bodyIO) static <A, B extends Comparable<B>>
BiPredicate<A, A> static <A, B extends Comparable<B>>
Predicate<A> static <A, B extends Comparable<B>>
Booleanstatic <A, B extends Comparable<B>>
BiPredicate<A, A> static <A, B extends Comparable<B>>
Predicate<A> static <A, B extends Comparable<B>>
Booleanstatic <A, B extends Comparable<B>>
BiPredicate<A, A> static <A, B extends Comparable<B>>
Predicate<A> static <A, B extends Comparable<B>>
Booleanstatic <A, B extends Comparable<B>>
BiPredicate<A, A> static <A, B extends Comparable<B>>
Predicate<A> static <A, B extends Comparable<B>>
Booleanstatic <A, B extends Comparable<B>>
BiPredicate<A, A> static <A, B extends Comparable<B>>
Predicate<A> static <A, B extends Comparable<B>>
Booleanstatic <A> Fn1<A, A> static <A> A -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn4
Classes in com.jnape.palatable.lambda.functions.builtin.fn4 that implement Fn1Modifier and TypeClassDescriptionfinal classIfThenElse<A,B> final classLiftA3<A, B, C, D, App extends Applicative<?,App>, AppD extends Applicative<D, App>> Lift into and apply anFn3to threeApplicativevalues, returning the result inside the sameApplicativecontext.final classRateLimit<A>Classes in com.jnape.palatable.lambda.functions.builtin.fn4 that implement interfaces with type arguments of type Fn1Modifier and TypeClassDescriptionfinal classIfThenElse<A,B> final classIfThenElse<A,B> final classIfThenElse<A,B> Methods in com.jnape.palatable.lambda.functions.builtin.fn4 that return Fn1Modifier and TypeMethodDescriptionstatic <A,B> Fn1 <A, B> IfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate, Fn1<? super A, ? extends B> thenCase, Fn1<? super A, ? extends B> elseCase) 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) Methods in com.jnape.palatable.lambda.functions.builtin.fn4 that return types with arguments of type Fn1Modifier and TypeMethodDescriptionIfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate) IfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate) IfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate, Fn1<? super A, ? extends B> thenCase) Methods in com.jnape.palatable.lambda.functions.builtin.fn4 with parameters of type Fn1Modifier and TypeMethodDescriptionIfThenElse.checkedApply(Fn1<? super A, ? extends Boolean> predicate, Fn1<? super A, ? extends B> thenCase, Fn1<? super A, ? extends B> elseCase, A a) IfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate) IfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate, Fn1<? super A, ? extends B> thenCase) static <A,B> Fn1 <A, B> IfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate, Fn1<? super A, ? extends B> thenCase, Fn1<? super A, ? extends B> elseCase) static <A,B> B IfThenElse.ifThenElse(Fn1<? super A, ? extends Boolean> predicate, Fn1<? super A, ? extends B> thenCase, Fn1<? super A, ? extends B> elseCase, A a) -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn5
Classes in com.jnape.palatable.lambda.functions.builtin.fn5 that implement Fn1Modifier and TypeClassDescriptionfinal classLiftA4<A, B, C, D, E, App extends Applicative<?,App>, AppE extends Applicative<E, App>> Lift into and apply anFn4to fourApplicativevalues, returning the result inside the sameApplicativecontext.Methods in com.jnape.palatable.lambda.functions.builtin.fn5 that return Fn1Modifier and TypeMethodDescriptionstatic <A, B, C, D, E, App extends Applicative<?,App>, AppE extends Applicative<E, App>>
Fn1<Applicative<D, App>, AppE> LiftA4.liftA4(Fn4<A, B, C, D, E> fn, Applicative<A, App> appA, Applicative<B, App> appB, Applicative<C, App> appC) -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn6
Classes in com.jnape.palatable.lambda.functions.builtin.fn6 that implement Fn1Modifier and TypeClassDescriptionfinal classLiftA5<A, B, C, D, E, F, App extends Applicative<?,App>, AppF extends Applicative<F, App>> Lift into and apply anFn5to fiveApplicativevalues, returning the result inside the sameApplicativecontext.Methods in com.jnape.palatable.lambda.functions.builtin.fn6 that return Fn1Modifier and TypeMethodDescriptionstatic <A, B, C, D, E, F, App extends Applicative<?,App>, AppF extends Applicative<F, App>>
Fn1<Applicative<E, App>, AppF> LiftA5.liftA5(Fn5<A, B, C, D, E, F> fn, Applicative<A, App> appA, Applicative<B, App> appB, Applicative<C, App> appC, Applicative<D, App> appD) -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn7
Classes in com.jnape.palatable.lambda.functions.builtin.fn7 that implement Fn1Modifier and TypeClassDescriptionfinal classLiftA6<A, B, C, D, E, F, G, App extends Applicative<?,App>, AppG extends Applicative<G, App>> Lift into and apply anFn6to sixApplicativevalues, returning the result inside the sameApplicativecontext.Methods in com.jnape.palatable.lambda.functions.builtin.fn7 that return Fn1Modifier and TypeMethodDescriptionstatic <A, B, C, D, E, F, G, App extends Applicative<?,App>, AppG extends Applicative<G, App>>
Fn1<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, Applicative<D, App> appD, Applicative<E, App> appE) -
Uses of Fn1 in com.jnape.palatable.lambda.functions.builtin.fn8
Classes in com.jnape.palatable.lambda.functions.builtin.fn8 that implement Fn1Modifier and TypeClassDescriptionfinal classLiftA7<A, B, C, D, E, F, G, H, App extends Applicative<?,App>, AppH extends Applicative<H, App>> Lift into and apply anFn7to sevenApplicativevalues, returning the result inside the sameApplicativecontext.Methods in com.jnape.palatable.lambda.functions.builtin.fn8 that return Fn1Modifier and TypeMethodDescriptionstatic <A, B, C, D, E, F, G, H, App extends Applicative<?,App>, AppH extends Applicative<H, App>>
Fn1<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, Applicative<E, App> appE, Applicative<F, App> appF) -
Uses of Fn1 in com.jnape.palatable.lambda.functions.ordering
Methods in com.jnape.palatable.lambda.functions.ordering with parameters of type Fn1Modifier and TypeMethodDescription<R> RComparisonRelation.Equal.match(Fn1<? super ComparisonRelation.LessThan, ? extends R> aFn, Fn1<? super ComparisonRelation.Equal, ? extends R> bFn, Fn1<? super ComparisonRelation.GreaterThan, ? extends R> cFn) <R> RComparisonRelation.GreaterThan.match(Fn1<? super ComparisonRelation.LessThan, ? extends R> aFn, Fn1<? super ComparisonRelation.Equal, ? extends R> bFn, Fn1<? super ComparisonRelation.GreaterThan, ? extends R> cFn) <R> RComparisonRelation.LessThan.match(Fn1<? super ComparisonRelation.LessThan, ? extends R> aFn, Fn1<? super ComparisonRelation.Equal, ? extends R> bFn, Fn1<? super ComparisonRelation.GreaterThan, ? extends R> cFn) -
Uses of Fn1 in com.jnape.palatable.lambda.functions.recursion
Classes in com.jnape.palatable.lambda.functions.recursion that implement Fn1Modifier and TypeClassDescriptionfinal classTrampoline<A,B> Given an(analogous to "recurse" and "return" tail position instructions, respectively), produce aFn1<A,CoProduct2<A, B, ?>>that unrolls the original function by iteratively passing each result that matches the input (Fn1<A, B>A) back to the original function, and then terminating on and returning the first output (B).Classes in com.jnape.palatable.lambda.functions.recursion that implement interfaces with type arguments of type Fn1Modifier and TypeClassDescriptionfinal classTrampoline<A,B> Given an(analogous to "recurse" and "return" tail position instructions, respectively), produce aFn1<A,CoProduct2<A, B, ?>>that unrolls the original function by iteratively passing each result that matches the input (Fn1<A, B>A) back to the original function, and then terminating on and returning the first output (B).Methods in com.jnape.palatable.lambda.functions.recursion that return Fn1Modifier and TypeMethodDescriptionstatic <A,B> Fn1 <A, B> Trampoline.trampoline(Fn1<? super A, ? extends RecursiveResult<A, B>> fn) Methods in com.jnape.palatable.lambda.functions.recursion with parameters of type Fn1Modifier and TypeMethodDescription<C,D> RecursiveResult <C, D> Dually map covariantly over both the left and right parameters.<C> RecursiveResult<C, B> Covariantly map over the left parameter.<C> RecursiveResult<A, C> Covariantly map over the right parameter.Trampoline.checkedApply(Fn1<? super A, ? extends RecursiveResult<A, B>> fn, A a) <C> RecursiveResult<A, C> Chain dependent computations that may continue or short-circuit based on previous results.<C> RecursiveResult<A, C> Covariantly transmute this functor's parameter using the given mapping function.<R> R<R> Rstatic <A,B> Fn1 <A, B> Trampoline.trampoline(Fn1<? super A, ? extends RecursiveResult<A, B>> fn) static <A,B> B Trampoline.trampoline(Fn1<? super A, ? extends RecursiveResult<A, B>> fn, A a) <C> RecursiveResult<A, C> RecursiveResult.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, RecursiveResult<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<C, App extends Applicative<?,App>, TravB extends Traversable<C, RecursiveResult<A, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravRecursiveResult.traverse(Fn1<? super B, ? extends Applicative<C, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.Method parameters in com.jnape.palatable.lambda.functions.recursion with type arguments of type Fn1Modifier and TypeMethodDescription<C> RecursiveResult<A, C> RecursiveResult.zip(Applicative<Fn1<? super B, ? extends C>, RecursiveResult<A, ?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.functions.specialized
Subinterfaces of Fn1 in com.jnape.palatable.lambda.functions.specializedModifier and TypeInterfaceDescriptioninterfaceBiMonoidFactory<A,B, C> interfaceBiPredicate<A,B> interfaceBiSemigroupFactory<A,B, C> interfaceinterfaceMonoidFactory<A,B> interfacePredicate<A>A specializedFn1that returns aBoolean.interfaceSemigroupFactory<A,B> Methods in com.jnape.palatable.lambda.functions.specialized with parameters of type Fn1Modifier and TypeMethodDescriptionContravariantly mapA <- B.Contravariantly mapA <- B.default <Z> Predicate<Z> Contravariantly mapA <- B.default <Z> BiPredicate<Z, B> Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.default <Z> Predicate<Z> Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.Adapt a compatible function into aKleisliarrow.static <A> Predicate<A> Static factory method to create a predicate from anFn1.Method parameters in com.jnape.palatable.lambda.functions.specialized with type arguments of type Fn1Modifier and TypeMethodDescriptiondefault <D> BiPredicate<A, B> BiPredicate.discardR(Applicative<D, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Kleisli.discardR(Applicative<C, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative.Predicate.discardR(Applicative<C, Fn1<A, ?>> appB) Sequence both thisApplicativeandappB, discardingappB'sresult and returning thisApplicative. -
Uses of Fn1 in com.jnape.palatable.lambda.functor
Methods in com.jnape.palatable.lambda.functor with parameters of type Fn1Modifier and TypeMethodDescriptionDually map covariantly over both the left and right parameters.Dually covariantly map both the left and right parameters into values that are covariant toContraAandContraB, respectively.Covariantly map over the left parameter.Covariantly map the left parameter into a value that is covariant toContraA.Covariantly map over the right parameter.Covariantly map the right parameter into a value that is covariant toContraB.Contravariantly mapA <- B.default <Z> Cocartesian<Z, B, P> Contravariantly mapA <- B.<B> Contravariant<B, C> Contravariantly mapA <- B.default <Z> Profunctor<Z, B, PF> Contravariantly mapA <- B.Dually map contravariantly over the left parameter and covariantly over the right parameter.<Z,C> Cocartesian <Z, C, P> Dually map contravariantly over the left parameter and covariantly over the right parameter.<Z,C> Profunctor <Z, C, PF> Dually map contravariantly over the left parameter and covariantly over the right parameter.Contravariantly map over the left parameter.default <Z> Cocartesian<Z, B, P> Contravariantly map over the left parameter.default <Z> Profunctor<Z, B, PF> Contravariantly map over the left parameter.Covariantly map over the right parameter.default <C> Cocartesian<A, C, P> Covariantly map over the right parameter.default <C> Profunctor<A, C, PF> Covariantly map over the right parameter.default <B> Applicative<B, App> Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Method parameters in com.jnape.palatable.lambda.functor with type arguments of type Fn1Modifier and TypeMethodDescriptiondefault <B> Lazy<? extends Applicative<B, App>> Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.<B> Applicative<B, App> Applicative.zip(Applicative<Fn1<? super A, ? extends B>, App> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.functor.builtin
Fields in com.jnape.palatable.lambda.functor.builtin declared as Fn1Modifier and TypeFieldDescriptionExchange.btMarket.btLazy.Compose.flatMapExchange.saMarket.staWriter.writerFnMethods in com.jnape.palatable.lambda.functor.builtin that return Fn1Modifier and TypeMethodDescriptionExchange.bt()Extract the mappingB -> T.Market.bt()Extract the mappingB -> T.Exchange.sa()Extract the mappingS -> A.Market.sta()Extract the mappingS ->.Either<T, A>Methods in com.jnape.palatable.lambda.functor.builtin with parameters of type Fn1Modifier and TypeMethodDescription<C,D> Const <C, D> Dually map covariantly over both the left and right parameters.Covariantly map over the left parameter.Covariantly map over the right parameter.Update the accumulated state.Update the accumulated state.Contravariantly mapA <- B.Contravariantly mapA <- B.Contravariantly mapA <- B.Dually map contravariantly over the left parameter and covariantly over the right parameter.Dually map contravariantly over the left parameter and covariantly over the right parameter.<Z,C> Tagged <Z, C> Dually map contravariantly over the left parameter and covariantly over the right parameter.Contravariantly map over the left parameter.Contravariantly map over the left parameter.Contravariantly map over the left parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Chain dependent computations that may continue or short-circuit based on previous results.<B> Identity<B> Chain dependent computations that may continue or short-circuit based on previous results.<B> Lazy<B> Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.Map over the right parameter.<B> Identity<B> Covariantly transmute this functor's parameter using the given mapping function.final <B> Lazy<B> Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.static <S,A> State <S, A> Create aStatethat maps its initial state into its result, but leaves the initial state unchanged.Map the accumulation into a value and pair it with the current output.Map the accumulation into a value and pair it with the current output.Modify thisMonadReader'senvironment after reading it but before running the effect.Map both the result and the final state to a new result and final state.static <S,A> State <S, A> Create aStatefromstateFn, a function that maps an initial state into a result and a final state.Const.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Const<A, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Identity<B> Identity.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Identity<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B> Lazy<B> Lazy.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Lazy<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Market.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Market<A, B, S, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.State.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, State<S, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Tagged.trampolineM(Fn1<? super B, ? extends MonadRec<RecursiveResult<B, C>, Tagged<S, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Writer.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Writer<W, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<C, App extends Applicative<?,App>, TravB extends Traversable<C, Const<A, ?>>, AppTrav extends Applicative<TravB, App>>
AppTravConst.traverse(Fn1<? super B, ? extends Applicative<C, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<B, App extends Applicative<?,App>, TravB extends Traversable<B, Identity<?>>, AppTrav extends Applicative<TravB, App>>
AppTravIdentity.traverse(Fn1<? super A, ? extends Applicative<B, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<B, App extends Applicative<?,App>, TravB extends Traversable<B, Lazy<?>>, AppTrav extends Applicative<TravB, App>>
AppTravLazy.traverse(Fn1<? super A, ? extends Applicative<B, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<C, App extends Applicative<?,App>, TravC extends Traversable<C, Tagged<S, ?>>, AppTrav extends Applicative<TravC, App>>
AppTravTagged.traverse(Fn1<? super B, ? extends Applicative<C, App>> fn, Fn1<? super TravC, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.Map the final state to a new final state using the provided function.Method parameters in com.jnape.palatable.lambda.functor.builtin with type arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.<B> Identity<B> Identity.zip(Applicative<Fn1<? super A, ? extends B>, Identity<?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.<B> Lazy<B> Lazy.zip(Applicative<Fn1<? super A, ? extends B>, Lazy<?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Constructors in com.jnape.palatable.lambda.functor.builtin with parameters of type Fn1ModifierConstructorDescriptionprivateprivate -
Uses of Fn1 in com.jnape.palatable.lambda.internal.iteration
Fields in com.jnape.palatable.lambda.internal.iteration declared as Fn1Modifier and TypeFieldDescriptionTrampoliningIterator.fnMappingIterator.functionUnfoldingIterator.functionFilteringIterator.predicatePredicatedTakingIterator.predicateFields in com.jnape.palatable.lambda.internal.iteration with type parameters of type Fn1Modifier and TypeFieldDescriptionMappingIterable.mappersFilteringIterable.predicatesprivate final ImmutableQueue<Fn1<? super A, ? extends Boolean>> PredicatedDroppingIterable.predicatesPredicatedDroppingIterator.predicatesPredicatedTakingIterable.predicatesConstructors in com.jnape.palatable.lambda.internal.iteration with parameters of type Fn1ModifierConstructorDescriptionTrampoliningIterator(Fn1<? super A, ? extends Iterable<RecursiveResult<A, B>>> fn, A a) Constructor parameters in com.jnape.palatable.lambda.internal.iteration with type arguments of type Fn1ModifierConstructorDescriptionPredicatedDroppingIterator(ImmutableQueue<Fn1<? super A, ? extends Boolean>> predicates, Iterator<A> asIterator) -
Uses of Fn1 in com.jnape.palatable.lambda.io
Fields in com.jnape.palatable.lambda.io with type parameters of type Fn1Methods in com.jnape.palatable.lambda.io with parameters of type Fn1Modifier and TypeMethodDescriptionIO.exceptionally(Fn1<? super Throwable, ? extends A> recoveryFn) Deprecated.in favor of canonicalIO.catchError(Fn1)final <B> IO<B> Chain dependent computations that may continue or short-circuit based on previous results.final <B> IO<B> Covariantly transmute this functor's parameter using the given mapping function.<B> IO<B> IO.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, IO<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Method parameters in com.jnape.palatable.lambda.io with type arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.final <B> IO<B> IO.zip(Applicative<Fn1<? super A, ? extends B>, IO<?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Constructor parameters in com.jnape.palatable.lambda.io with type arguments of type Fn1 -
Uses of Fn1 in com.jnape.palatable.lambda.monad
Fields in com.jnape.palatable.lambda.monad declared as Fn1Methods in com.jnape.palatable.lambda.monad that return Fn1Modifier and TypeMethodDescriptionprivate <Z> Fn1<SafeT.Body.Suspended<M, ?, Z>, RecursiveResult<SafeT.Body<M, B>, Either<MonadRec<SafeT.Body<M, B>, M>, B>>> SafeT.Body.Suspended.associateRight(Fn1<Z, SafeT.Body<M, B>> f) Methods in com.jnape.palatable.lambda.monad with parameters of type Fn1Modifier and TypeMethodDescription<A> RSafeT.Body.Suspended.Φ.apply(SafeT.Body<M, A> source, Fn1<A, SafeT.Body<M, B>> fn) private <Z> Fn1<SafeT.Body.Suspended<M, ?, Z>, RecursiveResult<SafeT.Body<M, B>, Either<MonadRec<SafeT.Body<M, B>, M>, B>>> SafeT.Body.Suspended.associateRight(Fn1<Z, SafeT.Body<M, B>> f) MonadError<E, A, M> MonadWriter<W, A, MW> Update the accumulated state.Chain dependent computations that may continue or short-circuit based on previous results.<B> MonadError<E, B, M> Chain dependent computations that may continue or short-circuit based on previous results.<B> MonadReader<R, B, MR> Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.<B> MonadWriter<W, B, MW> Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.default <B> MonadError<E, B, M> Covariantly transmute this functor's parameter using the given mapping function.default <B> MonadReader<R, B, MR> Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.default <B> MonadWriter<W, B, MW> Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.<B> MonadWriter<W, Tuple2<A, B>, MW> Map the accumulation into a value and pair it with the current output.MonadReader<R, A, MR> Modify thisMonadReader'senvironment after reading it but before running the effect.<R> RSafeT.Body.Done.match(Fn1<? super Either<MonadRec<SafeT.Body<M, A>, M>, A>, ? extends R> aFn, Fn1<? super SafeT.Body.Suspended<M, ?, A>, ? extends R> bFn) <R> RSafeT.Body.More.match(Fn1<? super Either<MonadRec<SafeT.Body<M, A>, M>, A>, ? extends R> aFn, Fn1<? super SafeT.Body.Suspended<M, ?, A>, ? extends R> bFn) <R> RSafeT.Body.Suspended.match(Fn1<? super Either<MonadRec<SafeT.Body<M, B>, M>, B>, ? extends R> aFn, Fn1<? super SafeT.Body.Suspended<M, ?, B>, ? extends R> bFn) private static <M extends MonadRec<?,M>, A, B>
SafeT.Body<M, B> SafeT.Body.suspend(SafeT.Body<M, A> freeA, Fn1<A, SafeT.Body<M, B>> fn) MonadRec.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, M>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.SafeT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, SafeT<M, ?>>> bounce) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Method parameters in com.jnape.palatable.lambda.monad with type arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.default <B> Lazy<? extends MonadError<E, B, M>> Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.default <B> Lazy<? extends MonadReader<R, B, MR>> Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.default <B> Lazy<? extends MonadWriter<W, B, MW>> Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Monad.zip(Applicative<Fn1<? super A, ? extends B>, M> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.default <B> MonadError<E, B, M> MonadError.zip(Applicative<Fn1<? super A, ? extends B>, M> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.default <B> MonadReader<R, B, MR> MonadReader.zip(Applicative<Fn1<? super A, ? extends B>, MR> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.MonadRec.zip(Applicative<Fn1<? super A, ? extends B>, M> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.default <B> MonadWriter<W, B, MW> MonadWriter.zip(Applicative<Fn1<? super A, ? extends B>, MW> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Constructors in com.jnape.palatable.lambda.monad with parameters of type Fn1ModifierConstructorDescriptionprivateSuspended(SafeT.Body<M, A> source, Fn1<A, SafeT.Body<M, B>> f) -
Uses of Fn1 in com.jnape.palatable.lambda.monad.transformer
Methods in com.jnape.palatable.lambda.monad.transformer with parameters of type Fn1Modifier and TypeMethodDescriptionChain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.Method parameters in com.jnape.palatable.lambda.monad.transformer with type arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.MonadT.zip(Applicative<Fn1<? super A, ? extends B>, MT> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.monad.transformer.builtin
Fields in com.jnape.palatable.lambda.monad.transformer.builtin declared as Fn1Methods in com.jnape.palatable.lambda.monad.transformer.builtin with parameters of type Fn1Modifier and TypeMethodDescriptionDually map covariantly over both the left and right parameters.Covariantly map over the left parameter.Covariantly map over the right parameter.Update the accumulated state.Update the accumulated state.Contravariantly mapA <- B.Dually map contravariantly over the left parameter and covariantly over the right parameter.Contravariantly map over the left parameter.Covariantly map over the right parameter.If the embedded value is present and satisfiespredicatethen returnjustthe embedded valueChain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Given a function that produces a value inside amonadic effectfrom a state, produce aStateTthat simply passes its state to the function and applies it.Map the accumulation into a value and pair it with the current output.Map the accumulation into a value and pair it with the current output.Modify thisMonadReader'senvironment after reading it but before running the effect.Modify thisMonadReader'senvironment after reading it but before running the effect.ReaderT.mapReaderT(Fn1<? super MA, ? extends MonadRec<B, N>> fn) Map both the result and the final state to a new result and final state inside theMonad.Lift a state-sensitivemonadically embeddedcomputation intoStateT.EitherT.trampolineM(Fn1<? super R, ? extends MonadRec<RecursiveResult<R, R2>, EitherT<M, L, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.IdentityT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, IdentityT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.IterateT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, IterateT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.LazyT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, LazyT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.MaybeT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, MaybeT<M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.ReaderT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, ReaderT<R, M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.StateT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, StateT<S, M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.WriterT.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, WriterT<W, M, ?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Map the final state to a new final state inside the samemonadic effectusing the provided function.Method parameters in com.jnape.palatable.lambda.monad.transformer.builtin with type arguments of type Fn1Modifier and TypeMethodDescriptionEitherT.lazyZip(Lazy<? extends Applicative<Fn1<? super R, ? extends R2>, EitherT<M, L, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.IdentityT.lazyZip(Lazy<? extends Applicative<Fn1<? super A, ? extends B>, IdentityT<M, ?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Constructors in com.jnape.palatable.lambda.monad.transformer.builtin with parameters of type Fn1 -
Uses of Fn1 in com.jnape.palatable.lambda.monoid
Subinterfaces of Fn1 in com.jnape.palatable.lambda.monoidMethods in com.jnape.palatable.lambda.monoid with parameters of type Fn1 -
Uses of Fn1 in com.jnape.palatable.lambda.monoid.builtin
Classes in com.jnape.palatable.lambda.monoid.builtin that implement Fn1Modifier and TypeClassDescriptionfinal classAddAll<A, C extends Collection<A>>TheMonoidinstance formed under mutative concatenation for an arbitraryCollection.final classAMonoidinstance formed byBoolean.final classCollapse<_1,_2> final classCompose<A>final classConcat<A>final classEndo<A>final classThe monoid formed under monadic endomorphism.final classFirst<A>final classAMonoidinstance formed byStringthat concats two strings together.final classLast<A>final classLeftAll<L,R> final classLeftAny<L,R> final classMerge<L,R> AMonoidinstance formed byEither.merge(Fn2, Fn2, Either...), a semigroup overL, and a monoid overR.final classAMonoidinstance formed by mergingHMapsusing the chosenTypeSafeKey->Semigroupmappings, defaulting toLastin case noSemigrouphas been chosen for a givenTypeSafeKey.final classMergeMaps<K,V> final classAMonoidinstance formed byBoolean.final classPresent<A>final classfinal classRightAll<L,R> final classRightAny<L,R> final classRunAll<A>final classfinal classUnion<A>final classLogical exclusive-or.Classes in com.jnape.palatable.lambda.monoid.builtin that implement interfaces with type arguments of type Fn1Modifier and TypeClassDescriptionfinal classEndo<A>final classThe monoid formed under monadic endomorphism.Methods in com.jnape.palatable.lambda.monoid.builtin that return Fn1Modifier and TypeMethodDescriptionstatic <A, C extends Collection<A>>
Fn1<C, C> static <A> Fn1<CompletableFuture<A>, CompletableFuture<A>> Compose.compose(Monoid<A> aMonoid, CompletableFuture<A> x) static <A> Fn1<A, A> Endo.identity()Methods in com.jnape.palatable.lambda.monoid.builtin that return types with arguments of type Fn1Methods in com.jnape.palatable.lambda.monoid.builtin with parameters of type Fn1 -
Uses of Fn1 in com.jnape.palatable.lambda.optics
Methods in com.jnape.palatable.lambda.optics that return Fn1Modifier and TypeMethodDescriptiondefault <CoP extends Profunctor<?, ?, ? extends P>, CoF extends Functor<?, ? extends F>, FB extends Functor<B, ? extends CoF>, FT extends Functor<T, ? extends CoF>, PAFB extends Profunctor<A, FB, ? extends CoP>, PSFT extends Profunctor<S, FT, ? extends CoP>>
Fn1<PAFB, PSFT> Optic.monomorphize()Methods in com.jnape.palatable.lambda.optics that return types with arguments of type Fn1Methods in com.jnape.palatable.lambda.optics with parameters of type Fn1Modifier and TypeMethodDescriptionContravariantly mapA <- B.Contravariantly mapA <- B.Contravariantly mapA <- B.Dually map contravariantly over the left parameter and covariantly over the right parameter.Dually map contravariantly over the left parameter and covariantly over the right parameter.Dually map contravariantly over the left parameter and covariantly over the right parameter.Contravariantly map over the left parameter.Contravariantly map over the left parameter.Contravariantly map over the left parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Covariantly map over the right parameter.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.Covariantly transmute this functor's parameter using the given mapping function.static <S,A, B> Prism <S, S, A, B> Prism.fromPartial(Fn1<? super S, ? extends A> partialSa, Fn1<? super B, ? extends S> bs) Static factory method for creating aPrismfrom a partial functionS -> Aand a total functionB -> S.static <S,A> Prism.Simple <S, A> Prism.Simple.fromPartial(Fn1<? super S, ? extends A> partialSa, Fn1<? super A, ? extends S> as) Static factory method for creating asimple Prismfrom a partial functionS -> Aand a total functionA -> T.static <S,T, A, B> Iso <S, T, A, B> Static factory method for creating an iso from a function and it's inverse.static <S,T, A, B> Lens <S, T, A, B> Static factory method for creating a lens from a getter function and a setter function.Covariantly mapAtoC, yielding a new optic.Covariantly mapAtoC, yielding a new optic.Covariantly mapAtoC, yielding a new optic.Covariantly mapAtoC, yielding a new optic.default <C> ProtoOptic<P, S, T, C, B> Covariantly mapAtoC, yielding a new optic.Contravariantly mapBtoZ, yielding a new optic.Contravariantly mapBtoZ, yielding a new optic.Contravariantly mapBtoZ, yielding a new optic.Contravariantly mapBtoZ, yielding a new optic.default <Z> ProtoOptic<P, S, T, A, Z> Contravariantly mapBtoZ, yielding a new optic.Contravariantly mapStoR, yielding a new optic.Contravariantly mapStoR, yielding a new optic.Contravariantly mapStoR, yielding a new optic.Contravariantly mapStoR, yielding a new optic.default <R> ProtoOptic<P, R, T, A, B> Contravariantly mapStoR, yielding a new optic.Covariantly mapTtoU, yielding a new optic.Covariantly mapTtoU, yielding a new optic.Covariantly mapTtoU, yielding a new optic.Covariantly mapTtoU, yielding a new optic.default <U> ProtoOptic<P, S, U, A, B> Covariantly mapTtoU, yielding a new optic.static <P extends Profunctor<?, ?, ? extends P>, F extends Functor<?, ? extends F>, S, T, A, B, FB extends Functor<B, ? extends F>, FT extends Functor<T, ? extends F>, PAFB extends Profunctor<A, FB, ? extends P>, PSFT extends Profunctor<S, FT, ? extends P>>
Optic<P, F, S, T, A, B> Promote a monomorphic function to a compatibleOptic.static <S,T, A, B> Prism <S, T, A, B> Prism.prism(Fn1<? super S, ? extends CoProduct2<T, A, ?>> sta, Fn1<? super B, ? extends T> bt) static <S,A> Iso.Simple <S, A> Static factory method for creating a simpleIsofrom a function and its inverse.static <S,A> Lens.Simple <S, A> Lens.simpleLens(Fn1<? super S, ? extends A> getter, Fn2<? super S, ? super A, ? extends S> setter) Static factory method for creating a simple lens from a getter function and a setter function.static <S,A> Prism.Simple <S, A> Prism.simplePrism(Fn1<? super S, ? extends Maybe<A>> sMaybeA, Fn1<? super A, ? extends S> as) Static factory method for creating a simplePrismfrom a function and its potentially failing inverse.Iso.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Iso<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Lens.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Lens<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Prism.trampolineM(Fn1<? super T, ? extends MonadRec<RecursiveResult<T, U>, Prism<S, ?, A, B>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.Method parameters in com.jnape.palatable.lambda.optics with type arguments of type Fn1Modifier and TypeMethodDescriptionGiven alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports. -
Uses of Fn1 in com.jnape.palatable.lambda.optics.functions
Classes in com.jnape.palatable.lambda.optics.functions that implement Fn1Modifier and TypeClassDescriptionfinal classMatching<S,T, A, B> final classOver<S,T, A, B> Given anOptic, a function fromAtoB, and a "larger" valueS, produce aTby retrieving theAfrom theS, applying the function, and updating theSwith theBresulting from the function.final classPre<P extends Profunctor<?, ?, ? extends P>, S, T, A, B>final classRe<S,T, A, B> Turn anOpticwith a unary mapping that can be used for setting (e.g.final classSet<S,T, A, B> final classUnder<S,T, A, B> final classView<S,T, A, B> Classes in com.jnape.palatable.lambda.optics.functions that implement interfaces with type arguments of type Fn1Modifier and TypeClassDescriptionfinal classOver<S,T, A, B> Given anOptic, a function fromAtoB, and a "larger" valueS, produce aTby retrieving theAfrom theS, applying the function, and updating theSwith theBresulting from the function.final classOver<S,T, A, B> Given anOptic, a function fromAtoB, and a "larger" valueS, produce aTby retrieving theAfrom theS, applying the function, and updating theSwith theBresulting from the function.final classSet<S,T, A, B> final classUnder<S,T, A, B> final classView<S,T, A, B> Methods in com.jnape.palatable.lambda.optics.functions that return Fn1Modifier and TypeMethodDescriptionstatic <S,T, A, B> Fn1 <S, T> Over.over(Optic<? super Fn1<?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super A, ? extends B> fn) static <S,T, A, B> Fn1 <S, T> static <S,T, A, B> Fn1 <B, A> Under.under(Optic<? super Exchange<A, B, ?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super T, ? extends S> fn) static <S,T, A, B> Fn1 <S, A> Methods in com.jnape.palatable.lambda.optics.functions that return types with arguments of type Fn1Modifier and TypeMethodDescriptionMethods in com.jnape.palatable.lambda.optics.functions with parameters of type Fn1Modifier and TypeMethodDescriptionOver.checkedApply(Optic<? super Fn1<?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super A, ? extends B> fn, S s) Under.checkedApply(Optic<? super Exchange<A, B, ?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super T, ? extends S> fn, B b) static <S,T, A, B> Fn1 <S, T> Over.over(Optic<? super Fn1<?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super A, ? extends B> fn) static <S,T, A, B> T Over.over(Optic<? super Fn1<?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super A, ? extends B> fn, S s) static <S,T, A, B> Fn1 <B, A> Under.under(Optic<? super Exchange<A, B, ?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super T, ? extends S> fn) static <S,T, A, B> A Under.under(Optic<? super Exchange<A, B, ?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super T, ? extends S> fn, B b) Method parameters in com.jnape.palatable.lambda.optics.functions with type arguments of type Fn1Modifier and TypeMethodDescriptionOver.checkedApply(Optic<? super Fn1<?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super A, ? extends B> fn, S s) static <S,T, A, B> Fn1 <S, T> Over.over(Optic<? super Fn1<?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super A, ? extends B> fn) static <S,T, A, B> T Over.over(Optic<? super Fn1<?, ?>, ? super Identity<?>, S, T, A, B> optic, Fn1<? super A, ? extends B> fn, S s) static <S,T, A, B> Fn2 <B, S, T> static <S,T, A, B> Fn1 <S, T> static <S,T, A, B> T static <S,T, A, B> Fn1 <S, A> static <S,T, A, B> A -
Uses of Fn1 in com.jnape.palatable.lambda.optics.lenses
Methods in com.jnape.palatable.lambda.optics.lenses with parameters of type Fn1Modifier and TypeMethodDescriptionstatic <X, CX extends Collection<X>>
Lens.Simple<CX, CX> Convenience static factory method for creating a lens that focuses on a copy of aCollection, given a function that creates the copy.A lens that focuses on a copy of aMapas a subtypeM.static <X, CX extends Collection<X>>
Lens.Simple<CX, Set<X>> Convenience static factory method for creating a lens that focuses on an arbitraryCollectionas aSet.static <X, CX extends Collection<X>>
Lens.Simple<CX, Stream<X>> Convenience static factory method for creating a lens that focuses on a Collection as a Stream.static <A, SetA extends Set<A>>
Lens.Simple<SetA, Boolean> A lens that focuses on whether aSetcontains some valuea.A lens that focuses on a value at a key in a map, as aMaybe, and produces a subtypeMon the way back out. -
Uses of Fn1 in com.jnape.palatable.lambda.optics.prisms
Methods in com.jnape.palatable.lambda.optics.prisms with parameters of type Fn1 -
Uses of Fn1 in com.jnape.palatable.lambda.semigroup
Subinterfaces of Fn1 in com.jnape.palatable.lambda.semigroupModifier and TypeInterfaceDescriptioninterfaceSemigroup<A>ASemigroupis a closed, associative category. -
Uses of Fn1 in com.jnape.palatable.lambda.semigroup.builtin
Classes in com.jnape.palatable.lambda.semigroup.builtin that implement Fn1Modifier and TypeClassDescriptionfinal classAbsent<A>final classCollapse<_1,_2> final classCompose<A>final classIntersection<A>final classLeftAll<L,R> final classLeftAny<L,R> final classMax<A extends Comparable<A>>ASemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly less thany, returnyOtherwise, returnxfinal classMaxBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeB, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly less thanyin terms ofB, returnyOtherwise, returnxfinal classMaxWith<A>Given a comparator for some typeA, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly less thanyin terms ofB, returnyOtherwise, returnxfinal classMerge<L,R> final classMin<A extends Comparable<A>>ASemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly greater thany, returnyOtherwise, returnxfinal classMinBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeB, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly greater thanyin terms ofB, returnyOtherwise, returnxfinal classMinWith<A>Given a comparator for some typeA, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly greater thanyin terms ofB, returnyOtherwise, returnxfinal classRightAll<L,R> final classRightAny<L,R> final classRunAll<A>Classes in com.jnape.palatable.lambda.semigroup.builtin that implement interfaces with type arguments of type Fn1Modifier and TypeClassDescriptionfinal classMaxBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeB, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly less thanyin terms ofB, returnyOtherwise, returnxfinal classMinBy<A, B extends Comparable<B>>Given a mapping function from some typeAto someComparabletypeB, produce aSemigroupoverAthat chooses between two valuesxandyvia the following rules: Ifxis strictly greater thanyin terms ofB, returnyOtherwise, returnxMethods in com.jnape.palatable.lambda.semigroup.builtin that return Fn1Modifier and TypeMethodDescriptionstatic <A> Fn1<CompletableFuture<A>, CompletableFuture<A>> Compose.compose(Semigroup<A> aSemigroup, CompletableFuture<A> x) Intersection.intersection(Iterable<A> xs) static <A extends Comparable<A>>
Fn1<A, A> Max.max(A x) static <A, B extends Comparable<B>>
Fn1<A, A> static <A> Fn1<A, A> MaxWith.maxWith(Comparator<A> compareFn, A x) static <A extends Comparable<A>>
Fn1<A, A> Min.min(A x) static <A, B extends Comparable<B>>
Fn1<A, A> static <A> Fn1<A, A> MinWith.minWith(Comparator<A> compareFn, A x) Methods in com.jnape.palatable.lambda.semigroup.builtin with parameters of type Fn1Modifier and TypeMethodDescriptionMaxBy.checkedApply(Fn1<? super A, ? extends B> compareFn) MinBy.checkedApply(Fn1<? super A, ? extends B> compareFn) static <A, B extends Comparable<B>>
Semigroup<A> static <A, B extends Comparable<B>>
Fn1<A, A> static <A, B extends Comparable<B>>
Astatic <A, B extends Comparable<B>>
Semigroup<A> static <A, B extends Comparable<B>>
Fn1<A, A> static <A, B extends Comparable<B>>
A -
Uses of Fn1 in com.jnape.palatable.lambda.traversable
Methods in com.jnape.palatable.lambda.traversable with parameters of type Fn1Modifier and TypeMethodDescription<B> LambdaIterable<B> LambdaIterable.flatMap(Fn1<? super A, ? extends Monad<B, LambdaIterable<?>>> f) Chain dependent computations that may continue or short-circuit based on previous results.<B> LambdaIterable<B> Covariantly transmute this functor's parameter using the given mapping function.default <B> Traversable<B, T> Covariantly transmute this functor's parameter using the given mapping function.<B> LambdaIterable<B> LambdaIterable.trampolineM(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, LambdaIterable<?>>> fn) Given some operation yielding aRecursiveResultinside thisMonadRec, internally trampoline the operation until it yields aterminationinstruction.<B, App extends Applicative<?,App>, TravB extends Traversable<B, LambdaIterable<?>>, AppTrav extends Applicative<TravB, App>>
AppTravLambdaIterable.traverse(Fn1<? super A, ? extends Applicative<B, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.<C, App extends Applicative<?,App>, TravC extends Traversable<C, LambdaMap<A, ?>>, AppTrav extends Applicative<TravC, App>>
AppTravLambdaMap.traverse(Fn1<? super B, ? extends Applicative<C, App>> fn, Fn1<? super TravC, ? extends AppTrav> pure) <B, App extends Applicative<?,App>, TravB extends Traversable<B, T>, AppTrav extends Applicative<TravB, App>>
AppTravTraversable.traverse(Fn1<? super A, ? extends Applicative<B, App>> fn, Fn1<? super TravB, ? extends AppTrav> pure) Applyfnto each element of this traversable from left to right, and collapse the results into a single resulting applicative, potentially with the assistance of the applicative's pure function.Method parameters in com.jnape.palatable.lambda.traversable with type arguments of type Fn1Modifier and TypeMethodDescription<B> Lazy<LambdaIterable<B>> LambdaIterable.lazyZip(Lazy<? extends Applicative<Fn1<? super A, ? extends B>, LambdaIterable<?>>> lazyAppFn) Given alazyinstance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.<B> LambdaIterable<B> LambdaIterable.zip(Applicative<Fn1<? super A, ? extends B>, LambdaIterable<?>> appFn) Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.
matchinginto anIOand explicitly running it