static void printTopTen(MultiSet ms) { printTopTen(ms, null); } // renderer = func(O) -> S static void printTopTen(MultiSet ms, O renderer) { for (O o : ms.getTopTen()) print(ms.get(o) + ": " + (renderer != null ? callF(renderer, o) : structureOrText(o))); print(); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003757 |
Snippet name: | printTopTen - print top entries of MultiSet |
Eternal ID of this version: | #1003757/1 |
Text MD5: | c32b17774e41f3d38430de470df65a90 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-26 21:44:22 |
Source code size: | 289 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 588 / 584 |
Referenced in: | [show references] |