Trait

scalaz.std

OptionFunctions

Related Doc: package std

Permalink

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.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

    Permalink

    Alias for cata

  11. final def foldLift[F[_], A, B](oa: Option[A])(b: ⇒ B, k: (F[A]) ⇒ B)(implicit p: Applicative[F]): B

    Permalink

    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

    Permalink

    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[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def none[A]: Option[A]

    Permalink

    scala.None with a sometimes more convenient type.

  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def orEmpty[A, M[_]](oa: Option[A])(implicit arg0: Applicative[M], arg1: PlusEmpty[M]): M[A]

    Permalink

    Returns the item contained in the Option wrapped in type M if the Option is defined, otherwise, the empty value for type M.

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

    Permalink

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

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. final def toFailure[A, B](oa: Option[A])(b: ⇒ B): Validation[A, B]

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

    Permalink
  25. final def toLeft[A, B](oa: Option[A])(b: ⇒ B): \/[A, B]

    Permalink
  26. final def toMaybe[A](oa: Option[A]): Maybe[A]

    Permalink
  27. final def toRight[A, E](oa: Option[A])(e: ⇒ E): \/[E, A]

    Permalink
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def toSuccess[A, E](oa: Option[A])(e: ⇒ E): Validation[E, A]

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

    Permalink
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped