[Haskell-cafe] Syntax proposal for "reverse apply"/"pipeline apply" (flip ($))

Erik Hesselink hesselink at gmail.com
Thu Apr 17 13:08:17 UTC 2014


On Thu, Apr 17, 2014 at 3:05 PM, Alexander Berntsen
<alexander at plaimi.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 17/04/14 14:58, Alexey Muranov wrote:
>> Then i think symmetric aliases for '(.)' and 'flip (.)' would also
>> be needed.
> F# solved this elegantly with '>>' and '<<', but these are already
> used in Haskell. But I see these as separate issues, and I use 'flip
> ($)' a lot more often than 'flip (.)'.

Haskell has (>>>) and (<<<) in Control.Arrow if you want symmetric
operators for this.

Erik


More information about the Haskell-Cafe mailing list