Flipped function application

Dan Doel dan.doel
Thu Oct 10 22:45:18 UTC 2013


On Thu, Oct 10, 2013 at 1:12 PM, Wvv <vitea3v at rambler.ru> wrote:
> Is it hard to read?
>
> xs # map $ (+ 3) . snd
>
> Or do you prefer next?
>
> map ((+3).snd) xs

I've resigned myself to the fact that this will never happen, but if
($) had a sensible left fixity, one could write:

    map $ (+3).snd $ xs

And yes, I prefer your second line to your first.

-- Dan




More information about the Libraries mailing list