Uses of Class
com.jnape.palatable.lambda.functor.builtin.Writer
Packages that use Writer
-
Uses of Writer in com.jnape.palatable.lambda.functor.builtin
Methods in com.jnape.palatable.lambda.functor.builtin that return WriterModifier and TypeMethodDescriptionUpdate the accumulated state.Writer.discardL
(Applicative<B, Writer<W, ?>> appB) Sequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.Writer.discardR
(Applicative<B, Writer<W, ?>> appB) Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.Chain dependent computations that may continue or short-circuit based on previous results.Covariantly transmute this functor's parameter using the given mapping function.static <W,
A> Writer <W, A> Writer.listen
(A a) Construct aWriter
from a value.Map the accumulation into a value and pair it with the current output.Writer.pure
(B b) Lift the valueb
into this applicative functor.Writer.tell
(W w) Construct aWriter
from an accumulation.Writer.trampolineM
(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Writer<W, ?>>> fn) Given some operation yielding aRecursiveResult
inside thisMonadRec
, internally trampoline the operation until it yields atermination
instruction.static <W,
A> Writer <W, A> Construct aWriter
from an accumulation and a value.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.functor.builtin that return types with arguments of type WriterModifier and TypeMethodDescriptionGiven alazy
instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Writer.pureWriter()
Method parameters in com.jnape.palatable.lambda.functor.builtin with type arguments of type WriterModifier and TypeMethodDescriptionWriter.discardL
(Applicative<B, Writer<W, ?>> appB) Sequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.Writer.discardR
(Applicative<B, Writer<W, ?>> 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.Writer.trampolineM
(Fn1<? super A, ? extends MonadRec<RecursiveResult<A, B>, Writer<W, ?>>> 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.