scalaz

Coproduct

final case class Coproduct[F[_], G[_], A](run: \/[F[A], G[A]]) extends Product with Serializable

F on the left, and G on the right, of \/.

run

The underlying \/.

Source
Coproduct.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Coproduct
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Coproduct(run: \/[F[A], G[A]])

    run

    The underlying \/.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def canEqual(arg0: Any): Boolean

    Definition Classes
    Coproduct → Equals
  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def cobind[B](f: (Coproduct[F, G, A]) ⇒ B)(implicit F: Cobind[F], G: Cobind[G]): Coproduct[F, G, B]

  10. def contramap[B](f: (B) ⇒ A)(implicit F: Contravariant[F], G: Contravariant[G]): Coproduct[F, G, B]

  11. def copoint(implicit F: Comonad[F], G: Comonad[G]): A

  12. def duplicate(implicit F: Cobind[F], G: Cobind[G]): Coproduct[F, G, Coproduct[F, G, A]]

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    Coproduct → Equals → AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def foldMap[B](f: (A) ⇒ B)(implicit F: Foldable[F], G: Foldable[G], M: Monoid[B]): B

  17. def foldMap1[B](f: (A) ⇒ B)(implicit F: Foldable1[F], G: Foldable1[G], M: Semigroup[B]): B

  18. def foldMapRight1[B](z: (A) ⇒ B)(f: (A, ⇒ B) ⇒ B)(implicit F: Foldable1[F], G: Foldable1[G]): B

  19. def foldRight[Z](z: ⇒ Z)(f: (A, ⇒ Z) ⇒ Z)(implicit F: Foldable[F], G: Foldable[G]): Z

  20. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    Coproduct → AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def isLeft: Boolean

  24. def isRight: Boolean

  25. def map[B](f: (A) ⇒ B)(implicit F: Functor[F], G: Functor[G]): Coproduct[F, G, B]

  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def productArity: Int

    Definition Classes
    Coproduct → Product
  30. def productElement(arg0: Int): Any

    Definition Classes
    Coproduct → Product
  31. def productIterator: Iterator[Any]

    Definition Classes
    Product
  32. def productPrefix: String

    Definition Classes
    Coproduct → Product
  33. val run: \/[F[A], G[A]]

    The underlying \/.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    Coproduct → AnyRef → Any
  36. def traverse[X[_], B](g: (A) ⇒ X[B])(implicit F: Traverse[F], G: Traverse[G], A: Applicative[X]): X[Coproduct[F, G, B]]

  37. def traverse1[X[_], B](g: (A) ⇒ X[B])(implicit F: Traverse1[F], G: Traverse1[G], A: Apply[X]): X[Coproduct[F, G, B]]

  38. def unary_~: Coproduct[G, F, A]

  39. def validation: Validation[F[A], G[A]]

  40. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def foreach(f: (A) ⇒ Unit)(implicit F: Each[F], G: Each[G]): Unit

    Annotations
    @deprecated
    Deprecated

    (Since version 7.1) Each/foreach is deprecated

  2. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any