Re: [Haskell-cafe] permutations and performance
17 Aug
2008
17 Aug
'08
2:58 a.m.
John D. Ramsdell schrieb:
Try deleting it and see what happens.
Erm, yes, this case is wrong:
| n <= 0 = []
There is _one_ permutation with no elements, namely [], thus it must be | n == 0 = [[]]
6359
Age (days ago)
6361
Last active (days ago)
1 comments
2 participants
participants (2)
-
Henning Thielemann -
John D. Ramsdell