given_Functor_Ran

given given_Functor_Ran[G[_], H[_]]: Functor[[_] =>> Ran[G, H, _$11]]

Value members

Concrete methods

def fmap[A, B](f: A => B): Ran[G, H, A] => Ran[G, H, B]

Extensions

Inherited extensions

extension (fa: F[A])
@targetName("voidLeft")
def $>[A, B](a: B): Ran[G, H, 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): Ran[G, H, 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): Ran[G, H, B]
Inherited from
Functor
def void[A, B]: Ran[G, H, Unit]

Void F[A] and return F[Unit]

Void F[A] and return F[Unit]

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