-
-
Save afsalthaj/e7f0a2910c403d0cf04fcc6bb29de583 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 Functor[F[_]] { self => | |
def map[A, B](fa: F[A], f: A => B): F[B] | |
def xmap[A, B](fa: F[A], f: A => B, g: B => A) = | |
map(fa, f) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment