We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In your enclosed examples of mapping optional types, you don't have an example which maps a Some[value] to a None. How do you accomplish that?
Some["caterpillar!"].map(&:upcase) # => Some["CATERPILLAR!"] None.map(&:upcase) # => None
How do I accomplish Some["caterpillar!"].map(do something to produce a None) # => None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In your enclosed examples of mapping optional types, you don't have an example which maps a Some[value] to a None. How do you accomplish that?
Some["caterpillar!"].map(&:upcase) # => Some["CATERPILLAR!"]
None.map(&:upcase) # => None
How do I accomplish
Some["caterpillar!"].map(do something to produce a None) # => None
The text was updated successfully, but these errors were encountered: