Tuple2K

cats.data.Tuple2K
See theTuple2K companion object
final case class Tuple2K[F[_], G[_], A](first: F[A], second: G[A])

Tuple2K is a product to two independent functor values.

See: The Essence of the Iterator Pattern

Attributes

Companion
object
Source
Tuple2K.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def mapK[H[_]](f: FunctionK[G, H]): Tuple2K[F, H, A]

Modify the context G of second using transformation f.

Modify the context G of second using transformation f.

Attributes

Source
Tuple2K.scala
def swap: Tuple2K[G, F, A]

Attributes

Source
Tuple2K.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product