1 | static void printTopTen(MultiSet ms) { |
2 | printTopTen(ms, null); |
3 | } |
4 | |
5 | // renderer = func(O) -> S |
6 | static void printTopTen(MultiSet ms, O renderer) { |
7 | for (O o : ms.getTopTen()) |
8 | print(ms.get(o) + ": " + (renderer != null ? callF(renderer, o) : structureOrText(o))); |
9 | print(); |
10 | } |
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: | 590 / 586 |
Referenced in: | [show references] |