On 1/24/12 7:20 AM, Stuart Sierra wrote:
The fundamental interfaces are all written in Java. ISeq, IPersistentCollection, and so on. You can implement then in deftype.

Look at (ancestors (class [])) as a place to start.

-S

I believe the OP wanted to know if they could extend a java data structure (a mahout matrix in this case) to adhere to the collections interfaces. As far as I know you can't do that without wrapping the original data structure or by using proxy. Correct? Either way, you aren't really extending the original java type to act like a clojure collection.

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

Reply via email to