Posted By

deepsoul on 08/15/09


Tagged

map list-of-functions


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

keigoi
jtlien


Reverse map


 / 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.

  1. pam :: [a -> b] -> a -> [b]
  2. pam f x = map g f
  3. where g h = h x

Report this snippet  

You need to login to post a comment.