Created
October 26, 2011 06:49
-
-
Save xuwei-k/1315639 to your computer and use it in GitHub Desktop.
Scala から Clojure 使う
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
libraryDependencies ++= Seq( | |
"org.clojure" % "clojure" % "1.3.0" | |
) |
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
import clojure.lang.{RT,Compiler} | |
object Main{ | |
def main(args:Array[String]){ | |
println(Compiler.eval(RT.readString("(+ 1 2 3 4)"))) | |
} | |
} |
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
10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment