[Haskell] is $ a no-op?

Remi Turk rturk at science.uva.nl
Wed Oct 13 13:13:13 EDT 2004


On Wed, Oct 13, 2004 at 01:00:05PM -0400, Jacques Carette wrote:
> > -- |Apply list of functions to some value, returning list of results.
> > --  It's kind of like an converse map.
> > flist :: [a->b] -> a -> [b]
> > flist fs a = map ($ a) fs
> 
> I have attempted, unsuccessfully, to write flist above in a point-free
> manner.  Is it possible?
> 
> Jacques

Of course it is, but why?

flist = flip (map . flip ($))

Groeten,
Remi

-- 
Nobody can be exactly like me. Even I have trouble doing it.


More information about the Haskell mailing list