final class LeftNestedBitraverseOps[F[_, _], G[_], A, B] extends AnyVal
- Alphabetic
- By Inheritance
- LeftNestedBitraverseOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LeftNestedBitraverseOps(fgab: F[G[A], B])
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
- val fgab: F[G[A], B]
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
leftSequence(implicit F: Bitraverse[F], G: Applicative[G]): G[F[A, B]]
Sequence the left side of the structure.
Sequence the left side of the structure. For the right side, use the standard
sequence
from cats.Traverse.Example:
scala> import cats.implicits._ scala> val optionalErrorRight: Either[Option[String], Int] = Either.right(123) scala> optionalErrorRight.leftSequence res1: Option[Either[String, Int]] = Some(Right(123)) scala> val optionalErrorLeftSome: Either[Option[String], Int] = Either.left(Some("something went wrong")) scala> optionalErrorLeftSome.leftSequence res2: Option[Either[String, Int]] = Some(Left(something went wrong)) scala> val optionalErrorLeftNone: Either[Option[String], Int] = Either.left(None) scala> optionalErrorLeftNone.leftSequence res3: Option[Either[String,Int]] = None
-
def
toString(): String
- Definition Classes
- Any