Interface Pure<F extends Functor<?,? extends F>>
-
- Type Parameters:
F
- theFunctor
to lift into
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Pure<F extends Functor<?,? extends F>>
Generalized, portableApplicative.pure(Object)
, with a loosenedFunctor
constraint.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <A,FA extends Functor<A,? extends F>>
FAapply(A a)
<A> Functor<A,? extends F>
checkedApply(A a)
static <F extends Applicative<?,? extends F>>
Pure<F>of(Applicative<?,? extends F> app)
static <F extends Functor<?,? extends F>>
Pure<F>pure(Pure<F> pure)
Static method to aid inference.
-
-
-
Method Detail
-
checkedApply
<A> Functor<A,? extends F> checkedApply(A a) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
pure
static <F extends Functor<?,? extends F>> Pure<F> pure(Pure<F> pure)
Static method to aid inference.
-
of
static <F extends Applicative<?,? extends F>> Pure<F> of(Applicative<?,? extends F> app)
- Type Parameters:
F
- the witness- Parameters:
app
- theApplicative
- Returns:
- the
Pure
-
-