Skip to content

Commit

Permalink
[haskell.html.markdown] Explanation for Haskell '$' operator
Browse files Browse the repository at this point in the history
with support from @geoffliu
  • Loading branch information
0xcpu committed Mar 27, 2015
1 parent 2f43da1 commit e8a1ee8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions haskell.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8a1ee8

Please sign in to comment.