summaryrefslogtreecommitdiffhomepage
path: root/haskell.html.markdown
diff options
context:
space:
mode:
authorCornel Punga <cornel.punga@gmail.com>2015-03-27 15:25:33 +0200
committerCornel Punga <cornel.punga@gmail.com>2015-03-27 15:25:33 +0200
commite8a1ee8912d1c9bb0145c2afbdc530463fc612b7 (patch)
tree1783106b8922bc32bb9018ad13e462af09c5f80b /haskell.html.markdown
parent2f43da109ffab5a4d3dd582cc51a7c3d95dd4987 (diff)
[haskell.html.markdown] Explanation for Haskell '$' operator
with support from @geoffliu
Diffstat (limited to 'haskell.html.markdown')
-rw-r--r--haskell.html.markdown5
1 files changed, 2 insertions, 3 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index 6bdc78e0..6c98c2b6 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -205,9 +205,8 @@ foo 5 -- 75
-- Haskell has another operator called `$`. This operator applies a function
-- 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 `$`.
+-- has priority of 0 and is right-associative. Such a low priority means that
+-- the expression on its right is applied as the parameter to the function on its left.
-- before
(even (fib 7)) -- false