Packages

c

cats.syntax

EitherIdOps

final class EitherIdOps[A] extends AnyVal

Source
either.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EitherIdOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EitherIdOps(obj: A)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asLeft[B]: Either[A, B]

    Wrap a value in Left.

  6. def asRight[B]: Either[B, A]

    Wrap a value in Right.

  7. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. 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))
  10. 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)
  11. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped