Modifier and Type | Field and Description |
---|---|
static Unit |
Unit.UNIT
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
<B> Choice3<Unit,A,B> |
Maybe.diverge()
Diverge this coproduct by introducing another possible type that it could represent.
|
Choice2<A,Unit> |
Maybe.invert()
Swap the type parameters.
|
Tuple2<Maybe<Unit>,Maybe<A>> |
Maybe.project()
Project this coproduct onto a product, such that the index in the product that corresponds to this coproduct's
value is present, while the other indices are absent.
|
static Either<Throwable,Unit> |
Either.trying(SideEffect sideEffect)
Attempt to execute the
SideEffect , returning Unit in a right value. |
static Try<Unit> |
Try.trying(SideEffect sideEffect)
|
static <L> Either<L,Unit> |
Either.trying(SideEffect sideEffect,
Fn1<? super Throwable,? extends L> leftFn)
Attempt to execute the
SideEffect , returning Unit in a right value. |
Modifier and Type | Method and Description |
---|---|
Maybe<A> |
Maybe.throwError(Unit unit)
Throw an error value of type
E into the monad . |
Modifier and Type | Method and Description |
---|---|
Maybe<A> |
Maybe.catchError(Fn1<? super Unit,? extends Monad<A,Maybe<?>>> recoveryFn)
|
Modifier and Type | Method and Description |
---|---|
default IO<Unit> |
Effect.apply(A a)
Invoke this function explosively with the given argument.
|
IO<Unit> |
Effect.checkedApply(A a) |
Modifier and Type | Method and Description |
---|---|
default A |
Fn0.checkedApply(Unit unit)
Invoke this function with the given argument, potentially throwing any
Throwable . |
Modifier and Type | Method and Description |
---|---|
default <B> Fn0<B> |
Fn0.discardL(Applicative<B,Fn1<Unit,?>> appB) |
default <B> Fn0<A> |
Fn0.discardR(Applicative<B,Fn1<Unit,?>> appB) |
default <B> Fn0<B> |
Fn0.flatMap(Fn1<? super A,? extends Monad<B,Fn1<Unit,?>>> f) |
static <A> Fn0<A> |
Fn0.fn0(Fn1<Unit,A> fn)
|
default <B> Fn0<B> |
Fn0.zip(Applicative<Fn1<? super A,? extends B>,Fn1<Unit,?>> appFn) |
default <B> Fn0<B> |
Fn0.zip(Fn2<Unit,A,B> appFn) |
Modifier and Type | Method and Description |
---|---|
static <S> State<S,Unit> |
State.modify(Fn1<? super S,? extends S> fn)
|
static <S> State<S,Unit> |
State.put(S s)
|
static <W> Writer<W,Unit> |
Writer.tell(W w)
Construct a
Writer from an accumulation. |
Modifier and Type | Method and Description |
---|---|
static IO<Unit> |
IO.io(SideEffect sideEffect)
|
Modifier and Type | Method and Description |
---|---|
static <S,M extends MonadRec<?,M>> |
StateT.modify(Fn1<? super S,? extends MonadRec<S,M>> updateFn)
|
static <S,M extends MonadRec<?,M>> |
StateT.put(MonadRec<S,M> ms)
Lift a
monadic state into StateT . |
static <W,M extends MonadRec<?,M>> |
WriterT.tell(MonadRec<W,M> mw)
|
Modifier and Type | Method and Description |
---|---|
Unit |
Trivial.checkedApply(Unit x,
Unit y) |
Unit |
Trivial.identity() |
static Unit |
Trivial.trivial(Unit x,
Unit y) |
Modifier and Type | Method and Description |
---|---|
static Fn1<Unit,Unit> |
Trivial.trivial(Unit x) |
static Fn1<Unit,Unit> |
Trivial.trivial(Unit x) |
Modifier and Type | Method and Description |
---|---|
Unit |
Trivial.checkedApply(Unit x,
Unit y) |
static Fn1<Unit,Unit> |
Trivial.trivial(Unit x) |
static Unit |
Trivial.trivial(Unit x,
Unit y) |
Modifier and Type | Method and Description |
---|---|
static <A> Prism.Simple<Maybe<A>,Unit> |
MaybePrism._nothing()
|