On 10.06.2009, at 04:49, Richard Newman wrote: > The cardinality tracking has been (necessarily, I understand) lifted > into the explicit contents of the data structure, so applications > which call Clojure code that performs core operations (not your > generic versions) on those structures will not work.
Indeed. But there is no way around that. Standard Clojure functions have no dispatch mechanism at all, so you can't make a function work with different data types, unless the function happens to access the data only through a Java interface that you could implement in some other Java class. > So far as I understand it, to get 'native' multisets would require an > implementation of IPersistentCollection, or perhaps IPersistentSet > itself (if the contract of the interface doesn't impose set > semantics), and ideally some Clojure surface syntax. Yes. It will also very probably require changes to the set operations, meaning either a patch to clojure.core or an additional set of functions that live in some other namespace. Konrad. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---