krukow/clj-ds — pull request #3 by jordanlewis (2012-06-26 17:01:19+00:00)
Title: Strengthen types of some update methods

A number of the public collection modification methods were returning the type of their interface, rather than their concrete type.

For example, PersistentTreeSet.cons returned IPersistentSet, even though it always returns a PersistentTreeSet. This property makes these data structures a lot harder to work with in Java, as users must continually cast return values of these methods.

Attached commits strengthen the return types of such methods.