[Haskell-cafe] Missing `$` like operators in Haskell
Wojtek Narczyński
wojtek at power.com.pl
Fri Dec 12 13:15:10 UTC 2014
On 12.12.2014 03:58, Dan Burton wrote:
> The lens package defines (&) and (<&>) as flipped ($) and (<$>),
> respectively. There is nothing in the base package that defines those.
> <&> is quite uncommon. Flipped ($) is something that crops up here and
> there. Sometimes called (|>), or (#).
>
>
https://github.com/ghc/ghc/blob/master/libraries/base/Data/Function.hs
A the bottom.
-- /Since: 4.8.0.0/
(&) :: a -> (a -> b) -> b
x & f = f x
I learned about it from #haskell channel.
--
Wojtek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141212/c6b30198/attachment.html>
More information about the Haskell-Cafe
mailing list