How to zip multiple lists in Haskell?

Posted by TheMachineCharmer on Stack Overflow See other posts from Stack Overflow or by TheMachineCharmer
Published on 2010-03-18T07:53:18Z Indexed on 2010/03/18 8:31 UTC
Read the original article Hit count: 205

Filed under:
|
|

In python zip function accepts arbitrary number of lists and zips them together.

>>> l1 = [1,2,3]
>>> l2 = [5,6,7]
>>> l3 = [7,4,8]
>>> zip(l1,l2,l3)
[(1, 5, 7), (2, 6, 4), (3, 7, 8)]
>>> 

How can I zip together multiple lists in haskell?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about python