How do I convert a list to a tuple in Haskell?

后端 未结 7 683
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 07:55

How can I best convert a list to a tuple in Haskell:

[1,2,3,4,5,6] -> (1,2,3,4,5,6)
相关标签:
7条回答
  • 2020-12-01 08:40

    You can in fact do better than manually writing one function per tuple-size if you use quasi-quotation as explained here. However, I would wonder about code where you expect to use this generically.

    0 讨论(0)
提交回复
热议问题