-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
Fmap #13
Fmap #13
Conversation
Seems that |
Partially yes. But
return type of |
I think probably this is a bug in map. |
OK. |
In the case of the dictionary map it is hard to know if the originating dictionary is mutable or not. I've tried to write such code. So in that case we can just return an NSArray IMO, as it doesn't matter since the type is different anyway. |
fmap depends on map.
Now, |
Thank you! |
It's inspired from Haskell's fmap.
An array's fmap returns a new array, and a dictionary's fmap returns a new dictionary not an array.