| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| ```purescript | ||
| module Example where | ||
|
|
||
| add = (_ + _) |
There was a problem hiding this comment.
This add example is problematic because:
Sorry, something went wrong.
| add = (_ + _) | ||
| sub3 = _ - 3 | ||
|
|
||
| mapArray = map _ [1, 2, 3] |
There was a problem hiding this comment.
I think this second-order example adds another layer of potential confusion for beginners. I changed all these map examples to use first-order arguments for _.
Sorry, something went wrong.
|
This PR hasn't been merged because I'm not sure if the new content is actually correct. There's some release notes in PureScript that clarify this further. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Also modified the original examples to make them closer to what you'd find in real-world code.
I think this would be clearer if we split this up into multiple Example/Cause/Fix sections. Don't know if that deviation from the common format is allowed.