Last

zio.prelude.newtypes.`package`.Last
object Last extends SubtypeF

Attributes

Graph
Supertypes
class SubtypeF
trait instance.SubtypeF
trait instance.NewtypeF
class Object
trait Matchable
class Any
Show all
Self type
Last.type

Members list

Type members

Inherited types

type Type[+A] = this.subtypeF.Type[A]

Attributes

Inherited from:
SubtypeF

Value members

Inherited methods

def apply[A](value: A): Type[A]

Converts an instance of the underlying type to an instance of the newtype.

Converts an instance of the underlying type to an instance of the newtype.

Attributes

Inherited from:
NewtypeF
def unapply[A](value: subtypeF.Type[A]): Some[A]

Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

Attributes

Inherited from:
NewtypeF
def unwrap[A](value: subtypeF.Type[A]): A

Converts an instance of the newtype back to an instance of the underlying type.

Converts an instance of the newtype back to an instance of the underlying type.

Attributes

Inherited from:
NewtypeF
def unwrapAll[F[_], A](value: F[subtypeF.Type[A]]): F[A]

Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.

Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.

Attributes

Inherited from:
SubtypeF
def wrap[A](value: A): Type[A]

Converts an instance of the underlying type to an instance of the newtype.

Converts an instance of the underlying type to an instance of the newtype.

Attributes

Inherited from:
NewtypeF
def wrapAll[F[_], A](value: F[A]): F[this.subtypeF.Type[A]]

Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype. For example, this could be used to convert a list of instances of the underlying type to a list of instances of the newtype.

Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype. For example, this could be used to convert a list of instances of the underlying type to a list of instances of the newtype.

Attributes

Inherited from:
SubtypeF

Inherited fields

val subtypeF: instance.SubtypeF

Attributes

Inherited from:
SubtypeF