OneOr

final case
class OneOr[F[_], A](run: F[A] \/ A)
Since

7.0.3

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def ap[B](f: OneOr[F, A => B])(implicit F: Apply[F]): OneOr[F, B]
def cobind[B](f: OneOr[F, A] => B)(implicit F: Cobind[F]): OneOr[F, B]
def cojoin(implicit F: Cobind[F]): OneOr[F, OneOr[F, A]]
def copoint(implicit F: Comonad[F]): A
def foldLeft[B](z: => B)(f: (B, A) => B)(implicit F: Foldable[F]): B
def foldMap[B](f: A => B)(implicit M: Monoid[B], F: Foldable[F]): B
def foldMap1[B](f: A => B)(implicit M: Semigroup[B], F: Foldable1[F]): B
def foldMapLeft1[B](z: A => B)(f: (B, A) => B)(implicit F: Foldable1[F]): B
def foldMapRight1[B](z: A => B)(f: (A, => B) => B)(implicit F: Foldable1[F]): B
def foldRight[B](z: => B)(f: (A, => B) => B)(implicit F: Foldable[F]): B
def map[B](f: A => B)(implicit F: Functor[F]): OneOr[F, B]
def traverse[G[_], B](f: A => G[B])(implicit T: Traverse[F], F: Applicative[G]): G[OneOr[F, B]]
def traverse1[G[_], B](f: A => G[B])(implicit T: Traverse1[F], F: Apply[G]): G[OneOr[F, B]]

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product