Proposal: containers: add indexing operations for Set

Patrick Palka patrick at
Wed Jul 4 15:54:42 CEST 2012

On 7/4/2012 5:02 AM, Thomas Schilling wrote:
> I'm surprised that these functions already exists in Data.Map. What 
> are the use cases? 

One can use the indexing functions to retrieve a random element from the 
container, or to random-shuffle a container in n log n time.

More information about the Libraries mailing list