Generating all permutations of a list in Haskell

看板PLT (程式語言與理論)作者 (klanloss)時間14年前 (2010/06/21 22:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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
文章代碼(AID): #1C7t3t5H (PLT)
文章代碼(AID): #1C7t3t5H (PLT)