permutations. Reply
S.D.Mechveliani
mechvel@math.botik.ru
Mon, 14 May 2001 16:05:13 +0400
Andy Fugard <andyfugard@eircom.net> writes
> Hi all,
>
> I'm currently teaching myself a little Haskell. This morning I coded the
> following, the main function of which, permutate, returns all the
> permutations of a list. (Well it seems to at least!)
>
> [..]
The BAL library implements several operations with permutations.
In particular, it can list permutations by applying nextPermutation.
You may look into the source and demonstration example:
http://www.botik.ru/pub/local/Mechveliani/basAlgPropos/
-----------------
Serge Mechveliani
mechvel@botik.ru