Haskell Convert List to List of Tuples

Posted by peterwkc on Stack Overflow See other posts from Stack Overflow or by peterwkc
Published on 2010-06-18T03:33:32Z Indexed on 2010/06/18 3:43 UTC
Read the original article Hit count: 420

Filed under:
|
|

Hello, i have a list like this

["peter","1000","michell","2000","kelly","3000"]

and i would like to convert to

[("peter",1000),("michell", 2000),("kelly",3000)]

Please help. Thanks.

© Stack Overflow or respective owner

Related posts about list

Related posts about haskell