InvariantFunctorSyntax

endpoints4s.InvariantFunctorSyntax.InvariantFunctorSyntax
implicit class InvariantFunctorSyntax[A, F[_]](val fa: F[A])(implicit ev: InvariantFunctor[F])

Extension methods for values of type F[A] for which there is an implicit InvariantFunctor[F] instance.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def xmap[B](f: A => B)(g: B => A): F[B]

Transforms an F[A] value into an F[B] value given a pair of functions from A to B and from B to A.

Transforms an F[A] value into an F[B] value given a pair of functions from A to B and from B to A.

Attributes

See also

Concrete fields

val fa: F[A]