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
Bind (Bindable Functor) is a Monad without return
Bind
return
The text was updated successfully, but these errors were encountered:
Then we can make StringMap an instance of Monad with
return v = singleton "" v
Sorry, something went wrong.
I don't think using an empty string as default is a good idea. Anyway, I don't think it's worth the effort
ghci Data.Functor.Bind Data.Map> fromList [("foo",5), ("bar",1)] >>- (\x -> fromList [("foo", x + 1), ("bar", x - 1), ("baz", x * 2)]) fromList [("bar",0),("foo",6)]
No branches or pull requests
Bind
(Bindable Functor) is a Monad withoutreturn
The text was updated successfully, but these errors were encountered: