Class Endo<A>
- java.lang.Object
-
- com.jnape.palatable.lambda.monoid.builtin.Endo<A>
-
- Type Parameters:
A- the input/output type to theFn1
- All Implemented Interfaces:
Fn1<Fn1<A,A>,Fn1<Fn1<A,A>,Fn1<A,A>>>,Fn2<Fn1<A,A>,Fn1<A,A>,Fn1<A,A>>,Applicative<Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<Fn1<A,A>,?>>,Cartesian<Fn1<A,A>,Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<?,?>>,Cocartesian<Fn1<A,A>,Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<?,?>>,Contravariant<Fn1<A,A>,Profunctor<?,Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<?,?>>>,Functor<Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<Fn1<A,A>,?>>,Profunctor<Fn1<A,A>,Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<?,?>>,Monad<Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<Fn1<A,A>,?>>,MonadReader<Fn1<A,A>,Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<Fn1<A,A>,?>>,MonadRec<Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<Fn1<A,A>,?>>,MonadWriter<Fn1<A,A>,Fn1<Fn1<A,A>,Fn1<A,A>>,Fn1<Fn1<A,A>,?>>,Monoid<Fn1<A,A>>,Semigroup<Fn1<A,A>>
public final class Endo<A> extends java.lang.Object implements Monoid<Fn1<A,A>>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEndo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Fn2<Fn1<A,A>,A,A>apply(Fn1<A,A> f)Partially apply this function by passing its first argument.Aapply(Fn1<A,A> f, Fn1<A,A> g, A a)Fn1<A,A>checkedApply(Fn1<A,A> f, Fn1<A,A> g)static <A> Endo<A>endo()static <A> Fn2<Fn1<A,A>,A,A>endo(Fn1<A,A> f)static <A> Fn1<A,A>endo(Fn1<A,A> f, Fn1<A,A> g)static <A> Aendo(Fn1<A,A> f, Fn1<A,A> g, A a)Fn1<A,A>identity()The identity element of this monoid.-
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
-
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn2
apply, checkedApply, compose, contraMap, diMapL, discardR, toBiFunction, uncurry, widen
-
Methods inherited from interface com.jnape.palatable.lambda.monoid.Monoid
flip, foldLeft, foldMap, foldRight, reduceLeft, reduceRight
-
-
-
-
Field Detail
-
INSTANCE
private static final Endo<?> INSTANCE
-
-
Method Detail
-
identity
public Fn1<A,A> identity()
Description copied from interface:MonoidThe identity element of this monoid.
-
apply
public Fn2<Fn1<A,A>,A,A> apply(Fn1<A,A> f)
Description copied from interface:Fn2Partially apply this function by passing its first argument.
-
endo
public static <A> Endo<A> endo()
-
-