<< Back to previous view

[CLJ-984] Expose minKey and maxKey on PersistentTreeSet Created: 05/May/12  Updated: 07/May/12  Resolved: 07/May/12

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.3
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: Greg Chapman Assignee: Unassigned
Resolution: Declined Votes: 0
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).



 Comments   
Comment by Greg Chapman [ 05/May/12 9:09 PM ]

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.

Comment by Andy Fingerhut [ 07/May/12 12:05 PM ]

Closing this since submitter wishes it to be.

Generated at Thu Oct 02 07:37:06 CDT 2014 using JIRA 4.4#649-r158309.