1 | static <A> LinkedHashMap<A, Int> multiSetAsMap_popularFirst(MultiSet<A> ms) { |
2 | new LinkedHashMap<A, Int> map; |
3 | for (A a : ms.highestFirst()) |
4 | map.put(a, ms.get(a)); |
5 | ret map; |
6 | } |
Began life as a copy of #1013644
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014308 |
Snippet name: | multiSetAsMap_popularFirst |
Eternal ID of this version: | #1014308/3 |
Text MD5: | 8cd84f3f60fe7b31d378e93020060201 |
Author: | stefan |
Category: | javax / collections |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-20 01:38:16 |
Source code size: | 187 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 496 |
Version history: | 2 change(s) |
Referenced in: | [show references] |