Passing arguments from clojure to java

2010-11-16 Thread unst...@gmail.com
This seems like such an obvious question, but I can't seem to find the answer anywhere. I don't understand why this would not be included in the java_interop section of the clojure documentation. Is it possible to pass a clojure vector to a java function that requires a java vector as an

Re: Passing arguments from clojure to java

2010-11-16 Thread Alan
This is because java vectors are disgusting and not part of the Collections framework. Clojure vectors do implement Collection, and indeed List, but that is different from Vector. However, Vector was hacked up a bit after Collections were released to make it a little more forward compatible:

Re: Passing arguments from clojure to java

2010-11-16 Thread David Sletten
On Nov 16, 2010, at 5:49 PM, unst...@gmail.com wrote: This seems like such an obvious question, but I can't seem to find the answer anywhere. I don't understand why this would not be included in the java_interop section of the clojure documentation. Is it possible to pass a clojure vector