static <A> L<Pair<A, Int>> multiSetTopTenPairs(MultiSet<A> ms) { ret multiSetTopTenPairs(ms, 10); } static <A> L<Pair<A, Int>> multiSetTopTenPairs(MultiSet<A> ms, int n) { new L<Pair<A, Int>> l; for (A a : ms.getTopTen(n)) l.add(pair(a, ms.get(a))); ret l; }
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: | #1013507 |
Snippet name: | multiSetTopTenPairs |
Eternal ID of this version: | #1013507/3 |
Text MD5: | 83fa3d0276e9a7ac38037a8103a130d4 |
Author: | stefan |
Category: | javax / collections |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-09 11:03:57 |
Source code size: | 280 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 425 / 480 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013551 - topTenPairs - synonym of multiSetTopTenPairs #1013644 - multiSetTopTenAsLinkedHashMap #1017092 - multiSetTopPairs (highest count first) #1030109 - multiSetToPairs |