-
-
Save afsalthaj/f91e1ea7e6801dc91f9b328e6a12367b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait ContraVariantFunctor[F[_]] { | |
def contramap[A, B](f: B => A): F[B] | |
def xmap[A, B](fa: F[A], f: A => B, g: B => A): F[B] = | |
contramap(fa, g) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment