Packages

c

cats.syntax

BitraverseOpsBinCompat0

final class BitraverseOpsBinCompat0[F[_, _], A, B] extends AnyVal

Source
bitraverse.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BitraverseOpsBinCompat0
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BitraverseOpsBinCompat0(fab: F[A, B])

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. val fab: F[A, B]
  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def leftTraverse[G[_], C](f: (A) ⇒ G[C])(implicit F: Bitraverse[F], G: Applicative[G]): G[F[C, B]]

    Traverse over the left side of the structure.

    Traverse over the left side of the structure. For the right side, use the standard traverse from cats.Traverse.

    Example:

    scala> import cats.implicits._
    
    scala> val intAndString: (Int, String) = (7, "test")
    
    scala> intAndString.leftTraverse(i => Option(i).filter(_ > 5))
    res1: Option[(Int, String)] = Some((7,test))
    
    scala> intAndString.leftTraverse(i => Option(i).filter(_ < 5))
    res2: Option[(Int, String)] = None
  9. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped