Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdated List.filterMap documentation with more realistic examples #866
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
process-bot
May 16, 2017
Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
May 16, 2017
|
Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
evancz
added
the
docs
label
Jul 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
charukiewicz commentedMay 16, 2017
•
edited
Edited 1 time
-
charukiewicz
edited May 16, 2017 (most recent)
I made a change to the
filterMapdocumentation in theListmodule to provide more realistic examples of its use.The old text:
To someone who may not have a good understanding of what
Maybeis used for, I think this raises the question: "Why does myisTeenfunction even return aMaybe Intto begin with? Why not returnBooland usefilter?" In my opinion this is a very contrived example.As an alternative, my suggested example text is an application of the
headandidentityfunctions, where one can build a good intuition of whyMaybevalues are produced. My suggested text: