List comprehension: making lists of lists

后端 未结 0 827
小鲜肉
小鲜肉 2021-02-14 18:37

hi im trying to make a function in haskell that takes a number a makes a partion of it using lists i.e. for number 4 it would create [[1,1,1,1],[1,1,2],[1,3],

相关标签:
回答
  • 消灭零回复
提交回复
热议问题