1 | static <A, B> Map<A, Int> multiMapKeysAndCount(final MultiMap<A, B> mm) { |
2 | if (mm == null) null; |
3 | Map<A, Int> out = similarEmptyMap(mm.data); |
4 | for (A key : keys(mm)) |
5 | out.put(key, l(mm.get(key))); |
6 | ret out; |
7 | } |
Began life as a copy of #1011317
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022497 |
Snippet name: | multiMapKeysAndCount - makes a similar map |
Eternal ID of this version: | #1022497/2 |
Text MD5: | 62f36130f4b88d23951cc2051e183756 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-19 11:00:08 |
Source code size: | 221 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 285 / 290 |
Version history: | 1 change(s) |
Referenced in: | [show references] |