How do you write the function 'pair' in Haskell?
Posted
by kunjaan
on Stack Overflow
See other posts from Stack Overflow
or by kunjaan
Published on 2010-03-30T15:37:03Z
Indexed on
2010/03/31
2:23 UTC
Read the original article
Hit count: 267
haskell
The pair function needs to do something like this:
pairs [1, 2, 3, 4] -> [(1, 2), (2, 3), (3, 4)]
© Stack Overflow or respective owner