Created
August 26, 2018 22:03
-
-
Save joan38/fb204c0c8b0d7b94ce4c984cf3a6d060 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| trait Encoder[T] { | |
| def apply(o: T): String | |
| } | |
| object Encoder { | |
| implicit val intEncoder: Encoder[Int] = _.toString | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment