A
- the Maybe value parameter typepublic final class Last<A> extends Object implements Monoid<Maybe<A>>
Monoid
instance formed by Maybe
<A>
. The application to two Maybe
values produces the last non-empty value, or Maybe.nothing()
if all values are empty.Modifier and Type | Method and Description |
---|---|
Maybe<A> |
checkedApply(Maybe<A> x,
Maybe<A> y) |
Maybe<A> |
identity()
The identity element of this monoid.
|
static <A> Last<A> |
last() |
static <A> Fn1<Maybe<A>,Maybe<A>> |
last(Maybe<A> x) |
static <A> Maybe<A> |
last(Maybe<A> x,
Maybe<A> y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flip, foldLeft, foldMap, foldRight, monoid, monoid, reduceLeft, reduceRight
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, fn2, fromBiFunction, toBiFunction, uncurry, widen