[Haskell-cafe] permutations and performance

Henning Thielemann schlepptop at henning-thielemann.de
Sat Aug 16 17:28:40 EDT 2008


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 = [[]]



More information about the Haskell-Cafe mailing list