/ Published in: Haskell
pam is some sort of reverse map (hence the name). While map applies a function to a list of arguments, pam applies a list of functions to the same argument.
Expand |
Embed | Plain Text
pam :: [a -> b] -> a -> [b] pam f x = map g f where g h = h x
You need to login to post a comment.
