Linked Questions

Popular Questions

I'm new to clojure, my question is really simple but stumble me.
I want to Instantiate a class get by class, looks like:

(new (class an-object))

Just get the instance initialize by nothing.

For example, If the an-object is a vector:

(new (class [1 2 3]))

I run this in repl but only get the error message:

CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: (class []), compiling:(NO_SOURCE_PATH:1)

Related Questions