Last active
September 23, 2019 12:06
-
-
Save Koisell/26cc110426e52698d85e7345ad927b2c 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
def map(fa: Foo[A])(f: A => B): Foo[B] = ??? |
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
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