Packages

t

scalaz.std

OptionFunctions

trait OptionFunctions extends AnyRef

Source
Option.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptionFunctions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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 value none.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def fold[A, X](oa: Option[A])(some: (A) ⇒ X, none: ⇒ X): X

    Alias for cata

  11. 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.

  12. 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.

  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def getOrElseF[A, F[_]](oa: Option[A])(fa: ⇒ F[A])(implicit arg0: Applicative[F]): F[A]

    Returns the item contained in the Option wrapped in type F if the Option is defined, otherwise, returns the supplied action.

  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def none[A]: Option[A]

    scala.None with a sometimes more convenient type.

  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. 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.

  22. final def some[A](a: A): Option[A]

    scala.Some.apply with a sometimes more convenient type.

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. final def toFailure[A, B](oa: Option[A])(b: ⇒ B): Validation[A, B]
  25. final def toFailureNel[A, B](oa: Option[A])(b: ⇒ B): ValidationNel[A, B]
  26. final def toLeft[A, B](oa: Option[A])(b: ⇒ B): \/[A, B]
  27. final def toMaybe[A](oa: Option[A]): Maybe[A]
  28. final def toRight[A, E](oa: Option[A])(e: ⇒ E): \/[E, A]
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def toSuccess[A, E](oa: Option[A])(e: ⇒ E): Validation[E, A]
  31. final def toSuccessNel[A, E](oa: Option[A])(e: ⇒ E): ValidationNel[E, A]
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped