[haskell.html.markdown] Explanation for Haskell '$' operator

with support from @geoffliu
This commit is contained in:
Cornel Punga 2015-03-27 15:25:33 +02:00
parent 2f43da109f
commit e8a1ee8912

View File

@ -206,8 +206,7 @@ foo 5 -- 75
-- to a given parameter. In contrast to standard function application, which
-- has highest possible priority of 10 and is left-associative, the `$` operator
-- has priority of 0 and is right-associative. Such a low priority means that
-- all other operators on both sides of `$` will be evaluated before applying
-- the `$`.
-- the expression on its right is applied as the parameter to the function on its left.
-- before
(even (fib 7)) -- false