Created
April 3, 2015 13:04
-
-
Save akhileshs/f9606d90035e8396d707 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
scala> trait Functor[F[_]] { self => | |
| def map[A, B](fa: F[A])(f: A => B): F[B] | |
| // lift f to F and apply on F[A] | |
| // ... | |
| } | |
defined trait Functor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment