Haskell zip lists to lists of tulples

后端 未结 0 751
醉梦人生
醉梦人生 2020-12-30 11:28
>cprod [1,2,3] [’a’, ’b’]
[(1,’a’),(2,’a’),(3,’a’),(1,’b’),(2,’b’),(3,’b’)]

I try to implement the code by using zip but I know it is not enough.

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