-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support for Map #19
Support for Map #19
Conversation
Any chance you would have time to look at this sometime soon? Are you looking for help maintaining this project? I'd be happy to help out however I can |
Thanks for the implementation. |
Is there any chance of this being merged? I also would like to use it. |
Unfortunately I am no longer able to maintain this project, I apologize. If someone wishes to step up and take leadership of this project please respond to #21 |
@davecoates asked in #21 for a review of this pull request. I wanted to mention that I have been using it in production for a month now, and it works. :-) |
👍 I feel weird hitting the button on this, is everyone ok with it? Looking at you @udnisap? |
I have realised there's one problem with this - the way it handles eg. if it was a I'll hopefully look at this soon |
@davecoates I think I understand what you're saying, that the |
Sure, happy to continue looking into this as a separate request. Regarding map - it's more to be consistent with the behaviour of lists, see https://github.com/typed-immutable/typed-immutable#mapping-lists-form-one-type-to-other |
I misinterpreted your comment, I see what you're saying. It looks like there's something going on with the TypeInferer that you might be able to abstract out. Speaking of the readme, there is one huge thing this is missing -- documentation. Just stating that it exists would be a huge win. |
Ah yes, forgot about readme! I've updated it now basic overview of it. |
@davecoates Can you merge |
👍 |
@davecoates Sorry, one more thing. You need to merge the latest changes from |
Test cases copied from immutable where appropriate with necessary changes and some type specific tests. Added failing cases for map and filter (destructive to original data)
sorry that was my bad, I had rebased but neglected to do it from upstream |
🎉 |
Add test cases and minor fixes to existing map impl.
Test cases are based on the ones from Immutable.js with some extras around types. All test cases currently passing but didn't have to do much (eg. no custom implementation of map() like in List). Not sure if I'm missing something but seems to do what's expected currently - let me know if there's anything I've missed.
Resolves #9