static <A> LinkedHashMap<A, Int> multiSetAsMap_popularFirst(MultiSet<A> ms) { new LinkedHashMap<A, Int> map; for (A a : ms.highestFirst()) map.put(a, ms.get(a)); ret map; }
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: | 466 / 493 |
Version history: | 2 change(s) |
Referenced in: | [show references] |