($) :: (a->b) -> a -> b
Applies a function to an argument, but evaluated right-to-left
- Right associative
- Low precedence
Example
-- Instead of:
print (show (1 + 2))
-- You can write:
print $ show $ 1 + 2
($) :: (a->b) -> a -> b
Applies a function to an argument, but evaluated right-to-left
-- Instead of:
print (show (1 + 2))
-- You can write:
print $ show $ 1 + 2