Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1027805 // highestBy - synonym of highestByFunction

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5050L/28K).

static <A> A highestBy(Iterable<A> l, O f) {
  ret highestByFunction(l, f);
}



static <A> A highestBy(O f, Iterable<A> l) {
  ret highestByFunction(f, l);
}

static <A> A highestBy(Iterable<A> l, IF1<A, ? extends Comparable> f) {
  ret highestByFunction(f, l);
}

static <A> A lambdaMapLike highestBy(IF1<A, ? extends Comparable> f, Iterable<A> l) {
  ret highestByFunction(f, l);
}

static <A> A highestBy(IF1<A, ? extends Comparable> f, A[] l) {
  ret highestByFunction(f, wrapAsList(l));
}

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: 209 / 307
Version history: 4 change(s)
Referenced in: [show references]