Created
January 13, 2009 22:52
-
-
Save pjb3/46674 to your computer and use it in GitHub Desktop.
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.Compiler; | |
import clojure.lang.PersistentList; | |
import clojure.lang.Symbol; | |
import clojure.lang.IPersistentCollection; | |
public class MyProgram { | |
public static void main(String[] args) throws Exception { | |
IPersistentCollection myProgram = new PersistentList(41); | |
myProgram = myProgram.cons(1); | |
myProgram = myProgram.cons(Symbol.intern("clojure.core", "+")); | |
System.out.println(Compiler.eval(myProgram)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment