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 java.lang.Object implements Fn2<Fn1<? super A,? extends IO<?>>,FA,FA>
Given anEffect
, "peek" at the value contained inside aFunctor
viaFunctor.fmap(Fn1)
, applying theEffect
to the contained value, if there is one.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Peek()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FA
checkedApply(Fn1<? super A,? extends IO<?>> effect, FA fa)
Deprecated.static <A,FA extends Functor<A,?>>
Peek<A,FA>peek()
Deprecated.static <A,FA extends Functor<A,?>>
Fn1<FA,FA>peek(Fn1<? super A,? extends IO<?>> effect)
Deprecated.static <A,FA extends Functor<A,?>>
FApeek(Fn1<? super A,? extends IO<?>> effect, FA fa)
Deprecated.-
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 Detail
-
INSTANCE
private static final Peek<?,?> INSTANCE
Deprecated.
-
-