static <A> LinkedHashMap<A, Int> multiSetToMapPopularFirst(MultiSet<A> ms) { new LinkedHashMap<A, Int> map; if (ms != null) for (A a : ms.getSortedListDescending()) map.put(a, ms.get(a)); ret map; }
Began life as a copy of #1008498
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: | #1008500 |
Snippet name: | multiSetToMapPopularFirst |
Eternal ID of this version: | #1008500/1 |
Text MD5: | f80bc3cc427efed59768e0db79afb930 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-20 12:40:34 |
Source code size: | 213 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 556 / 579 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011986 - multiSetByPopularity |