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
.get
from pymaybe import maybe d=dict(a=23,b=43,c=dict(foo="bar")) md=maybe(d) md.get('a')
TypeError: get() takes 1 positional argument but 2 were given
However
d.get('a')
23
The text was updated successfully, but these errors were encountered:
Just use the md['a'] to access the value, you don't need the get() since Maybe is already handling null safety.
md['a']
Sorry, something went wrong.
No branches or pull requests
Error:
However
Output:
The text was updated successfully, but these errors were encountered: