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: | 423 / 478 |
Version history: | 2 change(s) |
Referenced in: | [show references] |