Add 'subsequences' and 'permutations' to Data.List (ticket #1990)

Chris Kuklewicz haskell at list.mightyreason.com
Thu Dec 20 08:19:14 EST 2007


Unfortunately, permutations5 has an error:

> *Main> permutations5 [1..3]
> [[1,2,3],[2,1,3],[3,2,1],[3,3,1],[3,2,2],[3,3,2]]
> *Main> permutations6 [1..3]
> [[1,2,3],[2,1,3],[3,2,1],[2,3,1],[3,1,2],[1,3,2]]




More information about the Libraries mailing list