[Haskell-cafe] Good name for this operator?
ross at soi.city.ac.uk
Sat Nov 15 18:53:01 EST 2008
On Sun, Nov 16, 2008 at 12:59:09AM +0200, Ariel J. Birnbaum wrote:
> When working with Applicative, I often find myself defining and using
> this operator:
> (<%>) :: (Applicative f) => f (a -> b) -> a -> f b
> f <%> x = f <*> pure x
> and always keep wondering whether it is already known by another name.
f <%> x = fmap ($ x) f
will be more efficient in many cases.
As for the name, <$$> would be analogous with the existing <**>.
More information about the Haskell-Cafe