Libraryless. Click here for Pure Java version (2275L/14K).
static <A, B> L<A> topTenKeysByValue(Map<A, B> map) { ret topTenKeysByValue(10, map); } static <A, B> L<A> topTenKeysByValue(int n, Map<A, B> map) { ret takeFirst_cloneIfDifferent(n, keysSortedByValueDesc(map)); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027263 |
Snippet name: | topTenKeysByValue |
Eternal ID of this version: | #1027263/3 |
Text MD5: | ac6a529c441d5b10821aeab0f72e3d39 |
Transpilation MD5: | c2f6c0685f2c439a255658349e29016a |
Author: | stefan |
Category: | javax / image recognition |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-28 12:12:03 |
Source code size: | 224 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 180 / 264 |
Version history: | 2 change(s) |
Referenced in: | [show references] |