Class Constantly<A,B>
java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn1.Constantly<A,B>
- Type Parameters:
A- The first argument type, and the the function's return typeB- The second (ignored) argument type
- All Implemented Interfaces:
Fn1<A,Fn1<B, A>>, Fn2<A, B, A>, Applicative<Fn1<B, A>, Fn1<A, ?>>, Cartesian<A, Fn1<B, A>, Fn1<?, ?>>, Cocartesian<A, Fn1<B, A>, Fn1<?, ?>>, Contravariant<A, Profunctor<?, Fn1<B, A>, Fn1<?, ?>>>, Functor<Fn1<B, A>, Fn1<A, ?>>, Profunctor<A, Fn1<B, A>, Fn1<?, ?>>, Monad<Fn1<B, A>, Fn1<A, ?>>, MonadReader<A, Fn1<B, A>, Fn1<A, ?>>, MonadRec<Fn1<B, A>, Fn1<A, ?>>, MonadWriter<A, Fn1<B, A>, Fn1<A, ?>>
-
Method Summary
Modifier and TypeMethodDescriptioncheckedApply(A a, B b) static <A,B> Constantly <A, B> static <A,B> Fn1 <B, A> constantly(A a) static <A,B> A constantly(A a, B b) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip
-
Method Details
-
checkedApply
-
constantly
-
constantly
-
constantly
public static <A,B> A constantly(A a, B b)
-