1 | static <A, B> MultiSet<A> multiSetMapToMultiSet(MultiSetMap<A, B> mm) { |
2 | new MultiSet<A> ms; |
3 | for (A a : keys(mm)) |
4 | ms.add(a, l(mm.get(a))); |
5 | ret ms; |
6 | } |
Began life as a copy of #1010848
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: | #1024459 |
Snippet name: | multiSetMapToMultiSet - stores keys + their occurrence count (drops values) |
Eternal ID of this version: | #1024459/1 |
Text MD5: | 86c2dbcffdd4d8a7c77fb627914530a9 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-13 12:24:55 |
Source code size: | 162 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 239 / 297 |
Referenced in: | [show references] |