[Haskell-beginners] permuting a list
Andrew Wagner
wagner.andrew at gmail.com
Thu Feb 12 11:58:21 EST 2009
>
> <rant>
> It seems everyone has just been reading the first few words of Jan's
> email and not the actual content. Jan is clearly trying to write a
> *random list shuffling* function, not a function to generate
> permutations. Let's try to be helpful, people...
> </rant>
>
Agreed, I've been quite confused by this thread. In the spirit of laziness,
though, wouldn't it seem like the "right" method is to generate all the
permutations lazily, and then choose a random element of that list?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090212/f236ad73/attachment.htm
More information about the Beginners
mailing list