given_Functor_Tuple2

given given_Functor_Tuple2[R]: Functor[[_] =>> (R, _$6)]

Value members

Concrete methods

def fmap[A, B](f: A => B): (R, A) => (R, B)

Extensions

Inherited extensions

extension (fa: F[A])
@targetName("voidLeft")
def $>[A, B](a: B): (R, B)

Drop whatever value A on left and return F[B] on the right

Drop whatever value A on left and return F[B] on the right

Example
Option(1) `$>` 3 == Option(3)
Inherited from
Functor
@targetName("mapFlipped")
def <#>[A, B](f: A => B): (R, B)

Usually fmap takes function first, mapFlipped takes data first

Usually fmap takes function first, mapFlipped takes data first

Example
fa <#> identity == identity(fa)
Inherited from
Functor
def map[A, B](f: A => B): (R, B)
Inherited from
Functor
def void[A, B]: (R, Unit)

Void F[A] and return F[Unit]

Void F[A] and return F[Unit]

Example
Option(2).void == Option(())
Inherited from
Functor