-
Notifications
You must be signed in to change notification settings - Fork 99
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
unionsWith #240
Comments
Oh, I just noticed that the type signature you're requesting is not the same as in #118:
That one is somewhat closer to the one in containers though:
|
I still want the |
Yeah, that would be nice to have. #226 seems like a good road towards that feature. Feel free to chime in there! |
@BebeSparkelSparkel I'm somewhat confused by your comment #226 (comment). Could you maybe give us some context regarding the problem you want to solve, so we can better understand your requirements? |
Detailed in #244, was my usecase, but switched data structures. However, this still seemed like a useful feature for combining a lot of small mappings. This allows the functions generating the mappings to be more compartmentalized by returning a mapping instead of having to pass a mapping into it and then returning the modified mapping. The downside is that I get all these maps that take up a whole bunch of space that cannot be garbage collected which I was trying to avoid with the fold, #226. I'll close this and defer to #226. I'm quite busy right but @sjakobi if you need some help/review with #226 let me know. |
unionsWith
would be a nice additionunionsWith :: Foldable f => (NonEmpty a -> b) -> f (HashMap k a) -> HashMap k b
The text was updated successfully, but these errors were encountered: