Generating all permutations of a list in Haskell
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.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.165.226.27
討論串 (同標題文章)
PLT 近期熱門文章
PTT數位生活區 即時熱門文章