$
From HaskellWiki
$ is an infix operator often seen in Haskell code. It applies the function on its left to the value on its right. At first glance this operator appears redundant, since ordinary application(f x)
(f $ x)
$
f $ g $ h x = f (g (h x))If
$
f g h x = ((f g) h) xIt is also useful in higher-order situations, such as
map ($ 0) xs
zipWith ($) fs xs
1 Definition
$ comes from the Prelude, where it is defined as:
infixr 0 $
($) :: (a -> b) -> a -> b
f $ x = f x
