Clojure

Expose minKey and maxKey on PersistentTreeSet

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: Release 1.3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

I have found it occasionally useful to be able to get the minimum or maximum of a sorted set. PersistentTreeMap already has public minKey and maxKey methods; I suggest adding public minKey and maxKey methods to PersistentTreeSet (which obviously will just call the relevant methods on the impl map).

Activity

Hide
Andy Fingerhut added a comment -

Closing this since submitter wishes it to be.

Show
Andy Fingerhut added a comment - Closing this since submitter wishes it to be.
Hide
Greg Chapman added a comment -

Actually, on further reflection, I was too hasty in opening this. first combined with seq or rseq is good enough. If I could close this I would, but I don't see a way to do so.

Show
Greg Chapman added a comment - Actually, on further reflection, I was too hasty in opening this. first combined with seq or rseq is good enough. If I could close this I would, but I don't see a way to do so.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: