Flipped function application
Artyom Kazak
yom
Thu Oct 10 17:28:44 UTC 2013
On Thu, 10 Oct 2013 21:12:28 +0400, Wvv <vitea3v at rambler.ru> wrote:
> Is it hard to read?
>
> xs # map $ (+ 3) . snd
>
> Or do you prefer next?
>
> map ((+3).snd) xs
To be honest, I find the former harder to read. It can?t be established
objectively, though, as most people are already used to `map f xs` and can
read it without any mental effort. On the other hand, I can see myself
getting used to `xs # map $ (+ 3) . snd` (by reading it right-to-left:
(+3).snd... through ?map-interface?... applies to xs; which is why I
prefer <$>, by the way).
More information about the Libraries
mailing list