Libraryless. Click here for Pure Java version (5247L/29K).
1 | static <A, B> L<A> keysWithMultipleValues(IMultiMap<A, B> mm) { |
2 | new L<A> l; |
3 | for (A key : mm.keySet()) |
4 | if (l(mm.get(key)) > 1) |
5 | l.add(key); |
6 | ret l; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004753 |
Snippet name: | keysWithMultipleValues |
Eternal ID of this version: | #1004753/2 |
Text MD5: | 96686c239de8c4d8ac42d6a1bf1cf15c |
Transpilation MD5: | 17a31a667a50ff1a3cf96ea88d5ab99d |
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:15:58 |
Source code size: | 168 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 553 / 580 |
Version history: | 1 change(s) |
Referenced in: | [show references] |