All combinations of elements of N lists in Haskell

后端 未结 0 1860
無奈伤痛
無奈伤痛 2021-01-18 00:34

In order to combine 2 lists the following code could be used.

[(x,y) | x <- [1, 2, 3], y <- [4, 5, 6]]

Or

(,) <$> [1,2,3]

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