Defined

kyo.Maybe$package.Maybe.Defined
object Defined

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Defined.type

Members list

Value members

Concrete methods

def apply[A](v: A): Defined[A]

Creates a Defined instance.

Creates a Defined instance.

Type parameters

A

the type of the value

Value parameters

v

the value to wrap

Attributes

Returns

a Defined instance containing the value

def unapply[A](opt: Maybe[A]): Ops[A]

Extracts the value from a Maybe instance.

Extracts the value from a Maybe instance.

Type parameters

A

the type of the value

Value parameters

opt

the Maybe instance to extract from

Attributes

Returns

the extracted value wrapped in Maybe.Ops