Libraryless. Click here for Pure Java version (5497L/30K).
static <A, B, C> MultiSetMap<B, C> lambdaMapLike mapMultiSetMapKeys(IF1<A, C> f, MultiSetMap<A, B> mm) { MultiSetMap m = similarEmptyMultiSetMap(mm); for (key : keys(mm)) m.put(f.get(key), mm.get(key)); ret m; } static <A, B, C> MultiSetMap<B, C> lambdaMapLike mapMultiSetMapKeys(MultiSetMap<A, B> mm, IF1<A, C> f) { ret mapMultiSetMapKeys(f, mm); }
Began life as a copy of #1024745
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034849 |
| Snippet name: | mapMultiSetMapKeys - apply function to a MultiSetMap's keys, merge values if two keys collapse to one |
| Eternal ID of this version: | #1034849/4 |
| Text MD5: | cc4927803c5360d30ffd5db0cff0118d |
| Transpilation MD5: | ca2e3d8a569d727d2f21fa26489ab467 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-11 06:19:07 |
| Source code size: | 371 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 340 / 460 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |