static <A> LinkedHashMap<A, Int> multiSetTopTenAsLinkedHashMap(MultiSet<A> ms) { ret multiSetTopTenAsLinkedHashMap(ms, 10); } static <A> LinkedHashMap<A, Int> multiSetTopTenAsLinkedHashMap(MultiSet<A> ms, int n) { new LinkedHashMap<A, Int> map; for (A a : ms.getTopTen(n)) map.put(a, ms.get(a)); ret map; }
Began life as a copy of #1013507
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: | #1013644 |
Snippet name: | multiSetTopTenAsLinkedHashMap |
Eternal ID of this version: | #1013644/1 |
Text MD5: | a942dd19a087156440d91d1aba2fd5c0 |
Author: | stefan |
Category: | javax / collections |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-12 12:33:28 |
Source code size: | 328 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 517 / 472 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014308 - multiSetAsMap_popularFirst #1015426 - mostPopularEntriesFromMultiMap |