Last active
February 18, 2016 13:53
-
-
Save wheaties/ff0ca5d46581cb7963dd to your computer and use it in GitHub Desktop.
First OneOf
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 OneOf[Obj, Items] | |
| class Prove[Items]{ | |
| def check[Obj](obj: Obj)(implicit proof: OneOf[Obj, Items]) = obj | |
| } | |
| type |[A, B] = (A, B) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment