1 | static MultiMap mapLike mapMultiMapValues_precise(O func, MultiMap mm) { |
2 | MultiMap m = similarEmptyMultiMap(mm); |
3 | for (O key : keys(mm)) |
4 | for (O value : mm.get(key)) |
5 | m.put(key, callF_precise(func, value)); |
6 | ret m; |
7 | } |
8 | |
9 | static MultiMap mapMultiMapValues_precise(MultiMap mm, O func) { |
10 | ret mapMultiMapValues_precise(func, mm); |
11 | } |
12 | |
13 | static <A, B, C> MultiMap<A, C> mapMultiMapValues_precise(IF1<B, C> func, MultiMap<A, B> mm) { |
14 | ret mapMultiMapValues_precise((O) func, mm); |
15 | } |
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: | 188 / 229 |
Referenced in: | [show references] |