Skip to content

Instantly share code, notes, and snippets.

@afsalthaj
Last active July 11, 2018 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afsalthaj/77923fc3b7583cf7bfc6c2b5b92fba21 to your computer and use it in GitHub Desktop.
Save afsalthaj/77923fc3b7583cf7bfc6c2b5b92fba21 to your computer and use it in GitHub Desktop.
trait InvariantFunctor[F[_]] {
def xmap[A, B](fa: F[A], f: A => B, g: B => A): F[B]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment