Andy Fugard <[EMAIL PROTECTED]>  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
[EMAIL PROTECTED]

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to