1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 09:44:24 +02:00

Merge pull request #1 from nero-luci/nero-luci-patch-1

Update haskell.html.markdown. Wrong explanation about '$' operator
This commit is contained in:
Cornel Punga
2015-03-16 21:15:17 +02:00

View File

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