[Haskell-cafe] Does this have a name?
carette at mcmaster.ca
Mon Nov 5 19:48:11 CET 2012
> app1 f x = f >>= ($ x)
> app2 f x = join (f <*> pure x)
with type Monad m => m (a -> m b) -> a -> m b ?
Hoogle did not help.
PS: a nice point-free version would be appreciated as well. I can
easily change app1 and app2 myself to point-free with enough
applications of flip, . and $, but none of those are 'nice'.
More information about the Haskell-Cafe