[Haskell-cafe] About ($)

Mark Carroll markc at chiark.greenend.org.uk
Thu Jun 2 15:05:19 EDT 2005

On Thu, 2 Jun 2005, Frank-Andre Riess wrote:

> name's Frank-Andre Riess. Nice to meet you m(_ _)m


> So, well, my first question on this list is admittedly somewhat simple, but I
> managed to delay it long enough and now I think I should ask about it: Does
> ($) have any relevance at all except for being a somewhat handier version of
> parentheses?

Well, it's nice to be able to pass ($) as an argument, a higher order
function that does function application, so you can write things like,
foldr ($) 6 [(/5),(+3),(*2)] and hopefully more useful things too.

-- Mark

More information about the Haskell-Cafe mailing list