public class EvalMonadFactory extends Object implements MonadFactory<Eval.μ>
| Modifier and Type | Method and Description |
|---|---|
static EvalMonadFactory |
instance() |
<A> Applicative<Eval.μ,A> |
pure(A a)
Returns an applicative containing the argument.
|
<A> Monad<Eval.μ,A> |
unit(A a)
Returns a monad containing the agiven argument.
|
public static EvalMonadFactory instance()
public <A> Monad<Eval.μ,A> unit(A a)
MonadFactoryunit in interface MonadFactory<Eval.μ>a - an argument.public <A> Applicative<Eval.μ,A> pure(A a)
ApplicativeFactorypure in interface ApplicativeFactory<Eval.μ>a - the value to lift into an applicative.Copyright © 2018. All rights reserved.