InvariantFunctor

trait InvariantFunctor[F[_]]

Defines ways to transform a given type constructor F

class Object
trait Matchable
class Any

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.

See also: