Libraryless. Click here for Pure Java version (2275L/14K).
1 | static <A, B> L<A> topTenKeysByValue(Map<A, B> map) { |
2 | ret topTenKeysByValue(10, map); |
3 | } |
4 | |
5 | static <A, B> L<A> topTenKeysByValue(int n, Map<A, B> map) { |
6 | ret takeFirst_cloneIfDifferent(n, keysSortedByValueDesc(map)); |
7 | } |
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: | 182 / 267 |
Version history: | 2 change(s) |
Referenced in: | [show references] |