[Haskell-beginners] numerical integration over lists

Thomas Engel thomas.engel1 at gmx.net
Sun Feb 5 20:14:42 CET 2012


Hello Daniel,

* Daniel Fischer <daniel.is.fischer at googlemail.com> [120205 19:17]:
> On Sunday 05 February 2012, 18:18:54, Thomas Engel wrote:
> > 
> > > -- sums ys, where sums ks = zipWith (+) ks
> 
> Sigh, that's what you get for hopping to and fro while writing a mail.
> That should have been
> 
> sums ks = zipWith (+) ks (tail ks)
it's working now
> 
> 
> It wasn't meant to be understood so, I intended differences etc. to be top-
> level functions, that's more readable.
> 
I have made an additional function for sums

Thanks again

Thomas



More information about the Beginners mailing list