[Haskell-cafe] Re: Mapping over multiple values of a list at once?

Jon Fairbairn jon.fairbairn at cl.cam.ac.uk
Fri Aug 28 04:53:30 EDT 2009


Raynor Vliegendhart <shinnonoir at gmail.com> writes:

> Just wondering, what should be the expected output be of something
> like mavg 4 [1..3]? [3%2] or []?

[0%1, 1%4, 3%4, 3%2, 3%2, 5%4, 3%4, 0%1], of course ;-P


-- 
Jón Fairbairn                                 Jon.Fairbairn at cl.cam.ac.uk




More information about the Haskell-Cafe mailing list