[Haskell-beginners] brief example of ZipList?

Michael P Mossey mpm at alumni.caltech.edu
Mon Aug 10 20:08:16 EDT 2009


Can someone give me a brief example using ZipList? I want to do something like

z1 :: [Int -> Int]
z1 = [succ,succ]

z2 :: [Int]
z2 = [1,2]

z3 = z1 <*> z2

But don't know to get it to regard these as ZipLists and not regular lists.

This is purely for learning purposes. No application in mind.

-Mike


More information about the Beginners mailing list