Unfortunately, I am not aware of any comprehensive documentation for the
internal Java implementation of Clojure's core data types. The source code
is the only definitive resource.
Introspection can help. For example, to get a list of everything you need
to implement to support map-like behavior:
user=> (ancestors (class {}))
#{clojure.lang.IObj clojure.lang.Seqable clojure.lang.IHashEq
clojure.lang.IMeta java.util.concurrent.Callable clojure.lang.IFn
java.io.Serializable clojure.lang.IEditableCollection
clojure.lang.APersistentMap clojure.lang.Associative java.util.Map
clojure.lang.IPersistentCollection java.lang.Object clojure.lang.AFn
java.lang.Runnable clojure.lang.Counted clojure.lang.MapEquivalence
java.lang.Iterable clojure.lang.IPersistentMap clojure.lang.ILookup}
-S
--
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