
1 Sep
2006
1 Sep
'06
10:02 p.m.
haskell:
Julien Oster wrote:
But I'm having problems with one of the functions:
func3 f l = l ++ map f l
While we're at it: The best thing I could come up for
func2 f g l = filter f (map g l)
is
func2p f g = (filter f) . (map g)
Which isn't exactly point-_free_. Is it possible to reduce that further?
Similarly: lambdabot> pl func2 f g l = filter f (map g l) func2 = (. map) . (.) . filter :)