Proposal: Add (&) to Data.Function
Ganesh Sittampalam
ganesh at earth.li
Sat Nov 24 10:38:39 CET 2012
On 20/11/2012 16:59, Yitzchak Gale wrote:
> infixl 1 &
> (&) :: a -> (a -> b) -> b
> a & f = f a
> {-# INLINE (&) #-}
>
> Discussion period: 2 weeks
>
> http://hackage.haskell.org/trac/ghc/ticket/7434
-1 for &, for me it's too unintuitive and different from any other language.
I'd be +1 for |> but perhaps that's just because I do a lot of F#. I'd
be ok with # too but perhaps MagicHash is an obstacle there.
Ganesh
More information about the Libraries
mailing list