FpdartOnOption<T> extension

on

Methods

alt(Option<T> orElse()) Option<T>

Available on Option<T>, provided by the FpdartOnOption extension

Return the current Option if it is a Some, otherwise return the result of orElse.
elem(T t, Eq<T> eq) bool

Available on Option<T>, provided by the FpdartOnOption extension

Return true when value of a is equal to the value inside the Option.
getOrElse(T orElse()) → T

Available on Option<T>, provided by the FpdartOnOption extension

If this Option is a Some then return the value inside the Option. Otherwise return the result of orElse.