Created
August 10, 2017 06:31
-
-
Save anonymous/229bee5c8eda4c88feda1849d6900566 to your computer and use it in GitHub Desktop.
the description for this gist
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 buildNumber(number: Int) = new ScalaToLanguageBridge[Int] { | |
override def apply[Wrapper[_]](implicit L: Language[Wrapper]): Wrapper[Int] = L.number(number) | |
} | |
def buildIncrementNumber(number: Int) = new ScalaToLanguageBridge[Int] { | |
override def apply[Wrapper[_]](implicit L: Language[Wrapper]): Wrapper[Int] = L.increment(L.number(number)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment