Allows any object to be wrapped in a Some or an Option.
Allows any object to be wrapped in a Some or an Option. Note that some objects provide their own
toOption
or similar methods; provided methods should be preferred over these implicits, in these cases.
import com.paypal.cascade.common.option._ val a = 5.some // Option[Int], equal to Some(5)
the wrapped object's type, and the type of the resulting Option
Convenience methods for working with Option[List[A]]
Extends an Option for side effects based on the optional value.
Extends an Option for side effects based on the optional value.
the type of the optional value
Convenience methods for working with Option[Boolean] types
Convenience methods for working with pairs of Options.
Convenience methods for working with pairs of Options.
import com.paypal.cascade.common.option._ val a = (Some("hi"), None) a.fold( ... )
Convenience methods and implicit wrappers for working with scala.Option