Uses of Class
com.jnape.palatable.lambda.adt.choice.Choice3
Packages that use Choice3
-
Uses of Choice3 in com.jnape.palatable.lambda.adt
Methods in com.jnape.palatable.lambda.adt that return Choice3 -
Uses of Choice3 in com.jnape.palatable.lambda.adt.choice
Subclasses of Choice3 in com.jnape.palatable.lambda.adt.choiceModifier and TypeClassDescriptionprivate static final class
Choice3._A<A,
B, C> private static final class
Choice3._B<A,
B, C> private static final class
Choice3._C<A,
B, C> Methods in com.jnape.palatable.lambda.adt.choice with type parameters of type Choice3Modifier and TypeMethodDescription<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) Applyfn
to 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.Methods in com.jnape.palatable.lambda.adt.choice that return Choice3Modifier and TypeMethodDescriptionstatic <A,
B, C> Choice3 <A, B, C> Choice3.a
(A a) Static factory method for wrapping a value of typeA
in aChoice3
.static <A,
B, C> Choice3 <A, B, C> Choice3.b
(B b) Static factory method for wrapping a value of typeA
in aChoice3
.Dually map covariantly over both the left and right parameters.Covariantly map over the left parameter.Covariantly map over the right parameter.static <A,
B, C> Choice3 <A, B, C> Choice3.c
(C c) Static factory method for wrapping a value of typeA
in aChoice3
.Converge this coproduct down to a lower order coproduct by mapping the last possible type into an earlier possible type.Choice3.discardL
(Applicative<D, Choice3<A, B, ?>> appB) Sequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.Choice3.discardR
(Applicative<D, Choice3<A, B, ?>> appB) Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.Choice2.diverge()
Diverge this coproduct by introducing another possible type that it could represent.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.Choice3.pure
(D d) Lift the valueb
into this applicative functor.Choice3.trampolineM
(Fn1<? super C, ? extends MonadRec<RecursiveResult<C, D>, Choice3<A, B, ?>>> fn) Given some operation yielding aRecursiveResult
inside thisMonadRec
, internally trampoline the operation until it yields atermination
instruction.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.adt.choice that return types with arguments of type Choice3Modifier and TypeMethodDescriptionGiven alazy
instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Choice3.pureChoice()
Method parameters in com.jnape.palatable.lambda.adt.choice with type arguments of type Choice3Modifier and TypeMethodDescriptionChoice3.discardL
(Applicative<D, Choice3<A, B, ?>> appB) Sequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.Choice3.discardR
(Applicative<D, Choice3<A, B, ?>> appB) Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.Chain dependent computations that may continue or short-circuit based on previous results.Given alazy
instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Choice3.trampolineM
(Fn1<? super C, ? extends MonadRec<RecursiveResult<C, D>, Choice3<A, B, ?>>> fn) Given some operation yielding aRecursiveResult
inside thisMonadRec
, internally trampoline the operation until it yields atermination
instruction.Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.