Skip to content

Instantly share code, notes, and snippets.

@pjb3
Created January 13, 2009 22:52
Show Gist options
  • Save pjb3/46674 to your computer and use it in GitHub Desktop.
Save pjb3/46674 to your computer and use it in GitHub Desktop.
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