Skip to content

Commit

Permalink
Update haskell.html.markdown. Wrong explanation about '$' operator
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcpu committed Mar 16, 2015
1 parent bf73893 commit 4e00fa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haskell.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ foo = (*5) . (+10)
foo 5 -- 75

-- fixing precedence
-- Haskell has another function called `$`. This changes the precedence
-- so that everything to the left of it gets computed first and then applied
-- to everything on the right. You can use `$` (often in combination with `.`)
-- Haskell has another function called `$`. Anything appearing after it will
-- take precedence over anything that comes before.
-- You can use `$` (often in combination with `.`)
-- to get rid of a lot of parentheses:

-- before
Expand Down

0 comments on commit 4e00fa4

Please sign in to comment.