public abstract class Effect<A>
extends java.lang.Object
Constructor and Description |
---|
Effect() |
Modifier and Type | Method and Description |
---|---|
<B> Effect<B> |
comap(F<B,A> f)
A contra-variant functor on effect.
|
F<A,Unit> |
e()
Returns a function for the given effect.
|
abstract void |
e(A a) |
static <A> Effect<A> |
f(F<A,Unit> f) |
public abstract void e(A a)
public final F<A,Unit> e()
public final <B> Effect<B> comap(F<B,A> f)
f
- The function to map over the effect.