object First extends prelude.SubtypeF
- Alphabetic
- By Inheritance
- First
- SubtypeF
- SubtypeF
- NewtypeF
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- 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.
- Definition Classes
- NewtypeF
- val subtypeF: NewtypeModuleF.SubtypeF
- Definition Classes
- SubtypeF
- def unapply[A](value: 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.
- Definition Classes
- NewtypeF
- def unwrap[A](value: 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.
- Definition Classes
- NewtypeF
- def unwrapAll[F[_], A](value: F[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.
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.
- Definition Classes
- SubtypeF → NewtypeF
- 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.
- Definition Classes
- NewtypeF
- def wrapAll[F[_], A](value: F[A]): F[Type[A]]
Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on 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.
- Definition Classes
- SubtypeF → NewtypeF