A
- the Iterable element typepublic final class Last<A> extends Object implements Fn1<Iterable<A>,Maybe<A>>
Iterable
, wrapped in a Maybe
. If the Iterable
is empty, the
result is Maybe.nothing()
.Modifier and Type | Method and Description |
---|---|
Maybe<A> |
checkedApply(Iterable<A> as)
Invoke this function with the given argument, potentially throwing any
Throwable . |
static <A> Last<A> |
last() |
static <A> Maybe<A> |
last(Iterable<A> as) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, apply, carry, cartesian, censor, choose, cocartesian, compose, contraMap, diMap, diMapL, diMapR, discardL, discardR, flatMap, fmap, fn1, fromFunction, lazyZip, listens, local, pure, pureFn1, thunk, toFunction, trampolineM, widen, zip, zip