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

3
LINES

< > BotCompany Repo | #1031678 // pairsSortedByB

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

Libraryless. Click here for Pure Java version (2879L/17K).

static <A, B> L<Pair<A, B>> pairsSortedByB(Cl<Pair<A, B>> l) {
  ret sortedByComparator(l, (a, b) -> cmp(a.b, b.b));
}

Author comment

Began life as a copy of #1025274

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031678
Snippet name: pairsSortedByB
Eternal ID of this version: #1031678/1
Text MD5: 3eee9162fbc7fde51847243285e10da5
Transpilation MD5: f8946955349b061918d9dff0cbed2cfb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-26 18:03:20
Source code size: 120 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 105 / 156
Referenced in: [show references]