final class FunctorTuple2Ops[F[_], A, B] extends AnyVal
- Alphabetic
- By Inheritance
- FunctorTuple2Ops
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FunctorTuple2Ops(fab: F[(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
-
def
_1F(implicit F: Functor[F]): F[A]
Lifts
Tuple2#_1
to FunctorLifts
Tuple2#_1
to Functorscala> import cats.data.Chain scala> import cats.syntax.functor._ scala> Chain((1, 2), (3, 4), (5, 6))._1F == Chain(1, 3, 5) res0: Boolean = true
-
def
_2F(implicit F: Functor[F]): F[B]
Lifts
Tuple2#_2
to FunctorLifts
Tuple2#_2
to Functorscala> import cats.data.Chain scala> import cats.syntax.functor._ scala> Chain((1, 2), (3, 4), (5, 6))._2F == Chain(2, 4, 6) res0: Boolean = true
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
swapF(implicit F: Functor[F]): F[(B, A)]
Lifts
Tuple2#swap
to FunctorLifts
Tuple2#swap
to Functorscala> import cats.data.Chain scala> import cats.syntax.functor._ scala> Chain((1, 2), (3, 4), (5, 6)).swapF == Chain((2, 1), (4, 3), (6, 5)) res0: Boolean = true
-
def
toString(): String
- Definition Classes
- Any
-
def
unzip(implicit F: Functor[F]): (F[A], F[B])
Un-zips an
F[(A, B)]
consisting of element pairs or Tuple2 into two separate F's tupled.Un-zips an
F[(A, B)]
consisting of element pairs or Tuple2 into two separate F's tupled.NOTE: Check for effect duplication, possibly memoize before
scala> import cats.data.Chain scala> import cats.syntax.functor._ scala> Chain((1, 2), (3, 4), (5, 6)).unzip == ((Chain(1, 3, 5), Chain(2, 4, 6))) res0: Boolean = true