j
k
j a
j l
This is how you implement zip using zipWith in Haskell:
Prelude> zipWith (\a b -> (a,b)) [1,3,5,7] [2,4,6,8] [(1,2),(3,4),(5,6),(7,8)] Prelude>
(Actually, zip is defined as
zip = zipWith (\a b -> (a,b))
which works due to curryficiation.)
Back to the thread
Back to the list