IsomorphismOptional

trait IsomorphismOptional[F[_], G[_]] extends Optional[F]
trait Optional[F]
class Object
trait Matchable
class Any

Value members

Abstract methods

def iso: IsoFunctor[F, G]

Concrete methods

override
def pextract[B, A](fa: F[A]): F[B] \/ A
Definition Classes

Inherited methods

def ?[A, X](fa: F[A])(some: => X, none: => X): X

Returns some if this context is defined, otherwise none.

Returns some if this context is defined, otherwise none.

Inherited from
Optional
def getOrElse[A](fa: F[A])(default: => A): A

Returns the value within the context if defined or else the value of default.

Returns the value within the context if defined or else the value of default.

Inherited from
Optional
def isDefined[A](fa: F[A]): Boolean

Returns true if a value is defined within the context.

Returns true if a value is defined within the context.

Inherited from
Optional
final
def isEmpty[A](fa: F[A]): Boolean

Returns true if no value is defined within the context.

Returns true if no value is defined within the context.

Inherited from
Optional
final
def nonEmpty[A](fa: F[A]): Boolean

Returns true if a value is defined within the context. This is an alias for isDefined.

Returns true if a value is defined within the context. This is an alias for isDefined.

Inherited from
Optional
def orElse[A](fa: F[A])(alternative: => F[A]): F[A]

Returns given context if it is defined or else the value of the alternative.

Returns given context if it is defined or else the value of the alternative.

Inherited from
Optional
def toMaybe[A](fa: F[A]): Maybe[A]

Returns this context converted to the Maybe context.

Returns this context converted to the Maybe context.

Inherited from
Optional
def toOption[A](fa: F[A]): Option[A]

Returns this context converted to the Option context.

Returns this context converted to the Option context.

Inherited from
Optional

Inherited fields

Inherited from
Optional

Implicits

Implicits

implicit
def G: Optional[G]