Return to Snippet

Revision: 17917
at September 16, 2009 17:29 by deepsoul


Initial Code
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]

Initial URL

                                

Initial Description
Easy if you know how... ;)

Initial Title
Apply list of functions to list of arguments, one-to-one

Initial Tags

                                

Initial Language
Haskell