advanced code snippet search
deepsoul on 09/16/09
list-of-functions zipWith
09/16/09 05:29pm
Easy if you know how... ;)
zid :: [a -> b] -> [a] -> [b]zid = zipWith id-- zipWith ($) also works -- example usage:fs = map (*) [1..5]xs = reverse [2..6]ys = zid fs xs-- ys is [6,10,12,12,10]
Report this snippet Tweet
Comment:
You need to login to post a comment.