trait IsomorphismInvariantFunctor[F[_], G[_]] extends InvariantFunctor[F]
- Source
- Isomorphism.scala
- Alphabetic
- By Inheritance
- IsomorphismInvariantFunctor
- InvariantFunctor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
InvariantFunctorLaw
extends AnyRef
- Definition Classes
- InvariantFunctor
Abstract Value Members
- implicit abstract def G: InvariantFunctor[G]
- abstract def iso: Isomorphism.<~>[F, G]
Concrete Value Members
-
def
invariantFunctorLaw: InvariantFunctorLaw
- Definition Classes
- InvariantFunctor
-
val
invariantFunctorSyntax: InvariantFunctorSyntax[F]
- Definition Classes
- InvariantFunctor
-
def
xmap[A, B](ma: F[A], f: (A) ⇒ B, g: (B) ⇒ A): F[B]
Converts
ma
to a value of typeF[B]
using the provided functionsf
andg
.Converts
ma
to a value of typeF[B]
using the provided functionsf
andg
.- Definition Classes
- IsomorphismInvariantFunctor → InvariantFunctor
-
def
xmapb[A, B](ma: F[A])(b: Bijection[A, B]): F[B]
Converts
ma
to a value of typeF[B]
using the provided bijection.Converts
ma
to a value of typeF[B]
using the provided bijection.- Definition Classes
- InvariantFunctor
-
def
xmapi[A, B](ma: F[A])(iso: Isomorphism.<=>[A, B]): F[B]
Converts
ma
to a value of typeF[B]
using the provided isomorphism.Converts
ma
to a value of typeF[B]
using the provided isomorphism.- Definition Classes
- InvariantFunctor