Skip to content

Instantly share code, notes, and snippets.

@Koisell Koisell/functor1.scala
Last active Sep 23, 2019

Embed
What would you like to do?
def map(fa: Foo[A])(f: A => B): Foo[B] = ???
case class Foo[A](...)
object Foo {
implicit val functor: Functor[A] =
new Functor[A]{
def map(fa: Foo[A])(f: A => B): Foo[B] = ???
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.