Libraryless. Click here for Pure Java version (5050L/28K).
1 | static <A> A highestBy(Iterable<A> l, O f) { |
2 | ret highestByFunction(l, f); |
3 | } |
4 | |
5 | |
6 | |
7 | static <A> A highestBy(O f, Iterable<A> l) { |
8 | ret highestByFunction(f, l); |
9 | } |
10 | |
11 | static <A> A highestBy(Iterable<A> l, IF1<A, ? extends Comparable> f) { |
12 | ret highestByFunction(f, l); |
13 | } |
14 | |
15 | static <A> A lambdaMapLike highestBy(IF1<A, ? extends Comparable> f, Iterable<A> l) { |
16 | ret highestByFunction(f, l); |
17 | } |
18 | |
19 | static <A> A highestBy(IF1<A, ? extends Comparable> f, A[] l) { |
20 | ret highestByFunction(f, wrapAsList(l)); |
21 | } |
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: | #1027805 |
Snippet name: | highestBy - synonym of highestByFunction |
Eternal ID of this version: | #1027805/5 |
Text MD5: | ef73d09291e83a32f3cadc2684d4edd2 |
Transpilation MD5: | e7518ecc564ae563f25589f12cf3f22a |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-02 19:33:34 |
Source code size: | 514 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 211 / 311 |
Version history: | 4 change(s) |
Referenced in: | [show references] |