OptionOps

mouse.OptionOps
final class OptionOps[A](oa: Option[A]) extends AnyVal

Attributes

Source
option.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def cata[B](some: A => B, none: => B): B

Attributes

Source
option.scala
def toTry(ex: => Throwable): Try[A]

Attributes

Source
option.scala
def toTryMsg(msg: => String): Try[A]

Attributes

Source
option.scala

Deprecated methods

def left[B](b: => B): Either[A, B]

Same as oa.toLeft except that it fixes the type to Either[A, B] On Scala prior to 2.12, toLeft returns Serializable with Product with Either[A, B]

Same as oa.toLeft except that it fixes the type to Either[A, B] On Scala prior to 2.12, toLeft returns Serializable with Product with Either[A, B]

Attributes

Deprecated
true
Source
option.scala
def right[B](b: => B): Either[B, A]

Same as oa.toRight except that it fixes the type to Either[B, A] On Scala prior to 2.12, toRight returns Serializable with Product with Either[B, A]

Same as oa.toRight except that it fixes the type to Either[B, A] On Scala prior to 2.12, toRight returns Serializable with Product with Either[B, A]

Attributes

Deprecated
true
Source
option.scala