mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00: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:
commit
adb92e5263
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user