1 | // f: A -> Comparable |
2 | static <A> L<A> sortInPlaceByCalculatedFieldDesc_f1(L<A> l, final F1<A, ?> f) { |
3 | sort(l, new Comparator<A>() { |
4 | public int compare(A a, A b) { |
5 | ret stdcompare(f.get(b), f.get(a)); |
6 | } |
7 | }); |
8 | ret l; |
9 | } |
Began life as a copy of #1012022
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013485 |
Snippet name: | sortInPlaceByCalculatedFieldDesc_f1 |
Eternal ID of this version: | #1013485/3 |
Text MD5: | bde549290004002de910e771e09838cb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-07 15:39:07 |
Source code size: | 241 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 457 / 482 |
Version history: | 2 change(s) |
Referenced in: | [show references] |