Created
August 10, 2017 06:32
-
-
Save anonymous/a4f11b10bf8f966d8ae9d56f5dc9194d 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
// builds a 10 + (((0 + 1)+1)+1) expression | |
def buildIncrementExpression() = new ScalaToLanguageBridge[Int] { | |
override def apply[Wrapper[_]](implicit L: Language[Wrapper]): Wrapper[Int] = { | |
L.add(L.number(10), L.increment(L.increment(L.increment(L.number(0))))) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment