static MultiMap mapLike mapMultiMapValues_precise(O func, MultiMap mm) { MultiMap m = similarEmptyMultiMap(mm); for (O key : keys(mm)) for (O value : mm.get(key)) m.put(key, callF_precise(func, value)); ret m; } static MultiMap mapMultiMapValues_precise(MultiMap mm, O func) { ret mapMultiMapValues_precise(func, mm); } static <A, B, C> MultiMap<A, C> mapMultiMapValues_precise(IF1<B, C> func, MultiMap<A, B> mm) { ret mapMultiMapValues_precise((O) func, mm); }
Began life as a copy of #1020213
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024822 |
| Snippet name: | mapMultiMapValues_precise - apply function to a MultiMap's values, use precise calls |
| Eternal ID of this version: | #1024822/1 |
| Text MD5: | e09336aeed3214def6dc0d4491460845 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-26 14:02:40 |
| Source code size: | 497 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 381 / 436 |
| Referenced in: | [show references] |