Generating all permutations of a list in Haskell

作者: slyfox (klanloss)   2010-06-21 22:02:28
I was tracing the code from:
http://shivindap.wordpress.com/2009/01/12/permutations-of-a-list-in-haskell/
but got confused by:
permutation [1]
= [ 1 : permutation [] ]
= [ 1 : [[]] ]
where did i go wrong? Thanks.

Links booklink

Contact Us: admin [ a t ] ucptt.com