InvariantFunctor

endpoints4s.InvariantFunctor
trait InvariantFunctor[F[_]]

Defines ways to transform a given type constructor F

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def xmap[A, B](fa: F[A], 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