[mercury-users] Okay to add permutation to typeclassed RNG protocol?

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Feb 23 13:49:00 AEDT 2007


On Thu, 22 Feb 2007 doug.auclair at logicaltypes.com wrote:

> I have a need for a random permutation of a list, and it appears that
> the implementation in the standard library does the job.  Can it (modified
> with typeclass constrants instead of random.supply values) be appended
> to the protocol Julian has put forward for the proposed RNG typeclassed
> protocol?

When/If we add a RNG typeclass to the standard library then, yes, 
random.permutation will use it.

Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list