Permalink
Browse files

return an IFn

  • Loading branch information...
Jay Fields
Jay Fields committed Dec 24, 2011
1 parent 67131ff commit f836fa1bdf007c2dae4e9480649757c78c4de29e
Showing with 3 additions and 3 deletions.
  1. +1 −2 src/clojure/interop/core.clj
  2. +2 −1 src/java/interop/Example.java
@@ -1,4 +1,3 @@
(ns interop.core)
(defn main []
{:a 1 :b 2})
(defn main [] println)
@@ -5,6 +5,7 @@
public class Example {
public static void main(String[] args) throws Exception {
RT.loadResourceScript("interop/core.clj");
System.out.println(RT.var("interop.core", "main").invoke());
clojure.lang.IFn f = (clojure.lang.IFn) RT.var("interop.core", "main").invoke();
f.invoke("hello world");
}
}

0 comments on commit f836fa1

Please sign in to comment.