Apply list of functions to list of arguments, one-to-one
Easy if you know how... ;)
Copy this code and paste it in your HTML
zid :: [a -> b] -> [a] -> [b]
-- zipWith ($) also works
-- example usage:
ys = zid fs xs
-- ys is [6,10,12,12,10]
Report this snippet
Comments
Subscribe to comments