Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
One of the great things about most languages hosted on the JVM is that they can be embedded into other Java programs. This is useful when you need the ability to script the larger system. Let’s review how to call Clojure functions from Java code.
Consider the following Clojure function, defined in the clj.script.examples namespace: