[Haskell] is $ a no-op?
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?
Of course it is, but why?
flist = flip (map . flip ($))
Nobody can be exactly like me. Even I have trouble doing it.
More information about the Haskell