Class Peek<A,FA extends Functor<A,?>>
java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn2.Peek<A,FA>
- Type Parameters:
A
- the functor parameter typeFA
- the functor type
- All Implemented Interfaces:
Fn1<Fn1<? super A,
,? extends IO<?>>, Fn1<FA, FA>> Fn2<Fn1<? super A,
,? extends IO<?>>, FA, FA> Applicative<Fn1<FA,
,FA>, Fn1<Fn1<? super A, ? extends IO<?>>, ?>> Cartesian<Fn1<? super A,
,? extends IO<?>>, Fn1<FA, FA>, Fn1<?, ?>> Cocartesian<Fn1<? super A,
,? extends IO<?>>, Fn1<FA, FA>, Fn1<?, ?>> Contravariant<Fn1<? super A,
,? extends IO<?>>, Profunctor<?, Fn1<FA, FA>, Fn1<?, ?>>> Functor<Fn1<FA,
,FA>, Fn1<Fn1<? super A, ? extends IO<?>>, ?>> Profunctor<Fn1<? super A,
,? extends IO<?>>, Fn1<FA, FA>, Fn1<?, ?>> Monad<Fn1<FA,
,FA>, Fn1<Fn1<? super A, ? extends IO<?>>, ?>> MonadReader<Fn1<? super A,
,? extends IO<?>>, Fn1<FA, FA>, Fn1<Fn1<? super A, ? extends IO<?>>, ?>> MonadRec<Fn1<FA,
,FA>, Fn1<Fn1<? super A, ? extends IO<?>>, ?>> MonadWriter<Fn1<? super A,
? extends IO<?>>, Fn1<FA, FA>, Fn1<Fn1<? super A, ? extends IO<?>>, ?>>
@Deprecated
public final class Peek<A,FA extends Functor<A,?>>
extends Object
implements Fn2<Fn1<? super A,? extends IO<?>>,FA,FA>
Deprecated.
Given an
Effect
, "peek" at the value contained inside a Functor
via Functor.fmap(Fn1)
,
applying the Effect
to the contained value, if there is one.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip
-
Field Details
-
INSTANCE
Deprecated.
-
-
Constructor Details
-
Peek
private Peek()Deprecated.
-
-
Method Details
IO
from the givenFunctor
and explicitly running it