Libraryless. Click here for Pure Java version (2578L/16K).
1 | static <A, B> MultiSet<A> multiMapKeysMultiSet(final MultiMap<A, B> mm) { |
2 | if (mm == null) null; |
3 | MultiSet<A> out = similarEmptyMultiSet(mm.data); |
4 | for (A key : keys(mm)) |
5 | out.add(key, l(mm.get(key))); |
6 | ret out; |
7 | } |
Began life as a copy of #1022497
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: | #1024155 |
Snippet name: | multiMapKeysMultiSet |
Eternal ID of this version: | #1024155/3 |
Text MD5: | 9b752a5a8a7e83961febda2aaf82037e |
Transpilation MD5: | 5eddcfc0104e7d5fef22b7d3fc34991f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-23 17:54:45 |
Source code size: | 226 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 273 |
Version history: | 2 change(s) |
Referenced in: | [show references] |