FpdartOnOption<T> extension
- on
-
- Option<
T>
- Option<
Methods
-
alt(
Option< T> orElse()) → Option<T> -
Available on Option<
Return the current Option if it is a Some, otherwise return the result ofT> , provided by the FpdartOnOption extensionorElse
. -
elem(
T t, Eq< T> eq) → bool -
Available on Option<
ReturnT> , provided by the FpdartOnOption extensiontrue
when value ofa
is equal to the value inside the Option. -
getOrElse(
T orElse()) → T -
Available on Option<
If this Option is a Some then return the value inside the Option. Otherwise return the result ofT> , provided by the FpdartOnOption extensionorElse
.