Skip to content

Commit fbec125

Browse files
Update text/chapter3.md
Co-authored-by: milesfrain <[email protected]>
1 parent 0c5a2fe commit fbec125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/chapter3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ apply f x = f x
604604
infixr 0 apply as $
605605
```
606606

607-
So `apply` takes a function and a value and applies the function to the value. The `infixr` keyword is used to define `$` as an alias for `apply`.
607+
So `apply` takes a function and a value and applies the function to the value. The `infixr` keyword is used to define `($)` as an alias for `apply`.
608608

609609
But why would we want to use `$` instead of regular function application? The reason is that `$` is a right-associative, low precedence operator. This means that `$` allows us to remove sets of parentheses for deeply-nested applications.
610610

0 commit comments

Comments
 (0)