Created
October 8, 2011 22:52
-
-
Save raek/1273014 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
(ns foo.bar) | |
(defn some-fn [x] | |
(println x)) |
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; | |
import clojure.lang.Symbol; | |
public class Main { | |
public static void main(String[] args) { | |
// (require 'foo.bar) | |
// (foo.bar/some-fn "Hello interop!") | |
RT.var("clojure.core", "require").invoke(Symbol.intern("foo.bar")); | |
RT.var("foo.bar", "some-fn").invoke("Hello interop!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment