Skip to content

Instantly share code, notes, and snippets.

@akhileshs
Created April 3, 2015 13:04
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 akhileshs/f9606d90035e8396d707 to your computer and use it in GitHub Desktop.
Save akhileshs/f9606d90035e8396d707 to your computer and use it in GitHub Desktop.
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