Those are native Java arrays  you are getting.  If you see things like
'int[]', 'double[]', that is a hint.  Also the '[I' and '[D' are
abbreviated type specifiers for such things in certain contexts in
Clojure.  I think the hex string is an address, or Java object ID, or
something like that.

You can access elements of a native Java array in Clojure with aget and
aset.

You can convert it to a Clojure vector with vec, e.g.

user=> (def java-int-array (int-array '(2 4 6 8)))
#'user/java-int-array
user=> java-int-array
#<int[] [I@7f342545>
user=> (aget java-int-array 0)
2
user=> (def clj-vec (vec java-int-array))
#'user/clj-vec
user=> clj-vec
[2 4 6 8]
user=> (clj-vec 0)
2

Andy

On Tue, Dec 20, 2011 at 4:59 PM, Antonio Recio <[email protected]> wrote:

> When I try to get the position of two variables I get a bizzare code, but
> not the vector. How I can get the vector in the form of position iren [0 0
> 0]?
>
> user=> (.GetEventPosition iren)
> #<int[] [I@62114b17>
>
> user=> (.GetPickPosition picker)
> #<double[] [D@1aef4504>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to