final class EitherIdOps[A] extends AnyVal
- Alphabetic
- By Inheritance
- EitherIdOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new EitherIdOps(obj: A)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asLeft[B]: Either[A, B]
Wrap a value in
Left
. -
def
asRight[B]: Either[B, A]
Wrap a value in
Right
. -
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
leftNel[B]: Either[NonEmptyList[A], B]
Wrap a value to a left EitherNel
Wrap a value to a left EitherNel
For example:
scala> import cats.implicits._, cats.data.NonEmptyList scala> "Err".leftNel[Int] res0: Either[NonEmptyList[String], Int] = Left(NonEmptyList(Err))
-
def
rightNel[B]: Either[NonEmptyList[B], A]
Wrap a value to a right EitherNel
Wrap a value to a right EitherNel
For example:
scala> import cats.implicits._, cats.data.NonEmptyList scala> 1.rightNel[String] res0: Either[NonEmptyList[String], Int] = Right(1)
-
def
toString(): String
- Definition Classes
- Any