I'm convinced I've seen a function like this somewhere:
  [a->b] -> a -> [b]
but cannot remember where.  Or maybe:
  Monad m => m (a->b) -> a -> m b
?

I could roll my own (*), but I'm trying not to duplicate standard library functions is I can help it. Any pointers?

#g
--

(*)

    flist :: [a->b] -> a -> [b]
    flist fs a = map (flip ($) a) fs

flist [(1*),(2*),(3*)] 5 -- = [5,10,15]


------------------- Graham Klyne <[EMAIL PROTECTED]> PGP: 0FAA 69FF C083 000B A2E9 A131 01B9 1C7A DBCA CB5E

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to