Uses of Interface
com.jnape.palatable.lambda.functions.Effect
-
Packages that use Effect Package Description com.jnape.palatable.lambda.functions com.jnape.palatable.lambda.functions.builtin.fn2 -
-
Uses of Effect in com.jnape.palatable.lambda.functions
Methods in com.jnape.palatable.lambda.functions that return Effect Modifier and Type Method Description default Effect<A>
Effect. andThen(Effect<A> effect)
Left-to-right composition ofEffects
.default <Z> Effect<Z>
Effect. contraMap(Fn1<? super Z,? extends A> fn)
Contravariantly mapA <- B
.default <Z> Effect<Z>
Effect. diMapL(Fn1<? super Z,? extends A> fn)
Contravariantly map over the argument to this function, producing a function that takes the new argument type, and produces the same result.default <C> Effect<A>
Effect. discardR(Applicative<C,Fn1<A,?>> appB)
Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.static <A> Effect<A>
Effect. effect(Fn1<? super A,? extends IO<?>> fn)
static <A> Effect<A>
Effect. effect(SideEffect sideEffect)
Create anEffect
from aSideEffect
;static <A> Effect<A>
Effect. fromConsumer(java.util.function.Consumer<A> consumer)
Static factory method to create anEffect
from a javaConsumer
.static <A> Effect<A>
Effect. noop()
Create anEffect
that accepts an input and does nothing;Methods in com.jnape.palatable.lambda.functions with parameters of type Effect Modifier and Type Method Description default Effect<A>
Effect. andThen(Effect<A> effect)
Left-to-right composition ofEffects
. -
Uses of Effect in com.jnape.palatable.lambda.functions.builtin.fn2
Methods in com.jnape.palatable.lambda.functions.builtin.fn2 with parameters of type Effect Modifier and Type Method Description static <A> Fn1<A,IO<A>>
Alter. alter(Effect<? super A> effect)
static <A> IO<A>
Alter. alter(Effect<? super A> effect, A a)
-