trait OptionFunctions extends AnyRef
- Alphabetic
- By Inheritance
- OptionFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def cata[A, X](oa: Option[A])(some: (A) => X, none: => X): X
Catamorphism over the option.
Catamorphism over the option. Returns the provided function
some
applied to item contained in the Option if it is defined, otherwise, the provided valuenone
. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def fold[A, X](oa: Option[A])(some: (A) => X, none: => X): X
Alias for
cata
- final def foldLift[F[_], A, B](oa: Option[A])(b: => B, k: (F[A]) => B)(implicit p: Applicative[F]): B
Returns the given value if None, otherwise lifts the Some value and passes it to the given function.
- final def foldLiftOpt[A, B](oa: Option[A])(b: => B, k: (Option[A]) => B): B
Returns the given value if None, otherwise lifts the Some value to Option and passes it to the given function.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def none[A]: Option[A]
scala.None with a sometimes more convenient type.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def orEmpty[A, M[_]](oa: Option[A])(implicit arg0: Applicative[M], arg1: PlusEmpty[M]): M[A]
Returns the item contained in the Option wrapped in type M if the Option is defined, otherwise, the empty value for type M.
- final def some[A](a: A): Option[A]
scala.Some.apply with a sometimes more convenient type.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toFailure[A, B](oa: Option[A])(b: => B): Validation[A, B]
- final def toFailureNel[A, B](oa: Option[A])(b: => B): ValidationNel[A, B]
- final def toLeft[A, B](oa: Option[A])(b: => B): \/[A, B]
- final def toMaybe[A](oa: Option[A]): Maybe[A]
- final def toRight[A, E](oa: Option[A])(e: => E): \/[E, A]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def toSuccess[A, E](oa: Option[A])(e: => E): Validation[E, A]
- final def toSuccessNel[A, E](oa: Option[A])(e: => E): ValidationNel[E, A]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()