public interface MonoidFactory<A,B> extends SemigroupFactory<A,B>
Modifier and Type | Method and Description |
---|---|
default Monoid<B> |
apply(A a)
Partially apply this function by taking its first argument.
|
default B |
apply(A a,
B b,
B c)
Invoke this function with the given arguments.
|
Monoid<B> |
checkedApply(A a)
Invoke this function with the given argument, potentially throwing any
Throwable . |
checkedApply
apply, checkedApply, compose, contraMap, diMapL, discardR, flip, fn3, fn3, fn3, uncurry, widen
curried, curry, fn2, fromBiFunction, toBiFunction
Monoid<B> checkedApply(A a) throws Throwable
Fn2
Throwable
.checkedApply
in interface Fn1<A,Fn1<B,Fn1<B,B>>>
checkedApply
in interface Fn2<A,B,Fn1<B,B>>
checkedApply
in interface SemigroupFactory<A,B>
a
- the argumentThrowable
- anything possibly thrown by the functiondefault B apply(A a, B b, B c)
Fn3