Class

scalaz.syntax.std

OptionOps

Related Doc: package std

Permalink

final class OptionOps[A] extends AnyVal

Source
OptionOps.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptionOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OptionOps(self: Option[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def <\/[B](b: ⇒ B): \/[A, B]

    Permalink
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  5. final def \/>[E](e: ⇒ E): \/[E, A]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. final def cata[X](some: (A) ⇒ X, none: ⇒ X): X

    Permalink
  8. final def err(message: ⇒ String): A

    Permalink

    Returns the item contained in the Option if it is defined, otherwise, raises an error with the provided message.

  9. final def first: @@[Option[A], First]

    Permalink
  10. final def foldLift[F[_], B](b: ⇒ B, k: (F[A]) ⇒ B)(implicit arg0: Applicative[F]): B

    Permalink
  11. final def foldLiftOpt[B](b: ⇒ B, k: (Option[A]) ⇒ B): B

    Permalink
  12. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  13. final def getOrElseF[F[_]](fa: ⇒ F[A])(implicit arg0: Applicative[F]): F[A]

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def last: @@[Option[A], Last]

    Permalink
  16. final def orEmpty[M[_]](implicit arg0: Applicative[M], arg1: PlusEmpty[M]): M[A]

    Permalink
  17. final def orZero(implicit z: Monoid[A]): A

    Permalink
  18. final def toFailure[B](b: ⇒ B): Validation[A, B]

    Permalink
  19. final def toFailureNel[B](b: ⇒ B): ValidationNel[A, B]

    Permalink
  20. final def toIList: IList[A]

    Permalink
  21. final def toLeftDisjunction[B](b: ⇒ B): \/[A, B]

    Permalink
  22. final def toMaybe: Maybe[A]

    Permalink
  23. final def toRightDisjunction[E](e: ⇒ E): \/[E, A]

    Permalink
  24. def toString(): String

    Permalink
    Definition Classes
    Any
  25. final def toSuccess[E](e: ⇒ E): Validation[E, A]

    Permalink
  26. final def toSuccessNel[E](e: ⇒ E): ValidationNel[E, A]

    Permalink
  27. final def unary_~(implicit z: Monoid[A]): A

    Permalink

    Returns the item contained in the Option if it is defined, otherwise, the zero element for the type A

    Returns the item contained in the Option if it is defined, otherwise, the zero element for the type A

    For example:

    val o: Option[List[String]] = None
    val a: List[String] = ~o // List()
  28. final def |(a: ⇒ A): A

    Permalink

    Returns the item contained in the Option if it is defined, otherwise, the provided argument.

Inherited from AnyVal

Inherited from Any

Ungrouped