
10 Aug
2009
10 Aug
'09
8:55 p.m.
On Mon, Aug 10, 2009 at 7:08 PM, Michael P Mossey
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.
z3 = getZipList $ (ZipList z1) <*> (ZipList z2) Should do what you want. Does that make sense? Antoine