[Haskell-beginners] general observation about programming

Jeffrey Brown jeffbrown.the at gmail.com
Thu Mar 3 02:01:22 UTC 2016


An even more convenient (when applicable) guide to pronunciation:
https://wiki.haskell.org/Pronunciation

On Sun, Feb 28, 2016 at 4:51 PM, Jeffrey Brown <jeffbrown.the at gmail.com>
wrote:

> That will work in the special case of lists, but there are all sorts of
> other things you might want to map across.
>
> On Sat, Feb 27, 2016 at 7:24 PM, Rustom Mody <rustompmody at gmail.com>
> wrote:
>
>>
>>
>> On Sun, Feb 28, 2016 at 2:26 AM, Jeffrey Brown <jeffbrown.the at gmail.com>
>> wrote:
>>
>>> It is, I agree, not appropriate everywhere, but point-free code can in
>>> the right place be much more readable. Maps are a good example. Compare:
>>>
>>>     map (f . g . h) xs
>>>
>>> to
>>>
>>>     map (\x -> f $ g $ h x) xs
>>>
>>
>> Not quite a fair comparison
>> How about?
>> [ f (g (h x))  |  x <- xs ]
>>
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>>
>
>
> --
> Jeffrey Benjamin Brown
>



-- 
Jeffrey Benjamin Brown
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160302/1cb9085a/attachment.html>


More information about the Beginners mailing list