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

3
LINES

< > BotCompany Repo | #1017307 // pairsSortedByA

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

Libraryless. Click here for Pure Java version (2748L/16K).

static <A, B> LPair<A, B> pairsSortedByA(Collection<Pair<A, B>> l) {
  ret sortedByComparator(l, (a, b) -> cmp(a.a, b.a));
}

Author comment

Began life as a copy of #1017304

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017307
Snippet name: pairsSortedByA
Eternal ID of this version: #1017307/3
Text MD5: d9c9629395d2690250f180ab072da8fe
Transpilation MD5: fc78b068628d31921348e1e2ed15c311
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-28 01:13:16
Source code size: 126 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 287 / 358
Version history: 2 change(s)
Referenced in: [show references]