Clojure

sorted-set doesn't support IEditableCollection

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:

Description

I think sorted-set (PersistentTreeSet) should implement the transient interface. It's a special-purpose set and should be usable just like every normal set.

Activity

Hide
Andy Fingerhut added a comment -

Anyone wishing for sorted sets/maps with transients should consider the data.avl library, which has them: https://github.com/clojure/data.avl

Show
Andy Fingerhut added a comment - Anyone wishing for sorted sets/maps with transients should consider the data.avl library, which has them: https://github.com/clojure/data.avl
Hide
Michel Alexandre Salim added a comment -

Note that this would require PersistentTreeMap to implement IEditableCollection as well.

Show
Michel Alexandre Salim added a comment - Note that this would require PersistentTreeMap to implement IEditableCollection as well.

People

Vote (1)
Watch (4)

Dates

  • Created:
    Updated: