[Haskell-cafe] Composition and type magic
Sumit Sahrawat, Maths & Computing, IIT (BHU)
sumit.sahrawat.apm13 at iitbhu.ac.in
Tue Feb 24 03:11:50 UTC 2015
Hi everyone,
I defined a function for discrete convolution, i.e
conv xs = sum . zipWith (*) xs . reverse
And I was wondering, can it be done without explicitly passing in the xs
(eta-reduction)?
I've seen people play with (.).(.) and foldl foldl foldl and was thinking
that maybe something similar might be used here.
--
Regards
Sumit Sahrawat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150224/ab63948a/attachment.html>
More information about the Haskell-Cafe
mailing list