Libraryless. Click here for Pure Java version (2193L/14K).
1 | // f: A -> S |
2 | static <A> L<A> sortInPlaceByCalculatedFieldIC(L<A> l, final F1<A, S> f) { |
3 | sort(l, new Comparator<A>() { |
4 | public int compare(A a, A b) { |
5 | ret compareIC(f.get(a), f.get(b)); |
6 | } |
7 | }); |
8 | ret l; |
9 | } |
Began life as a copy of #1017401
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025687 |
Snippet name: | sortInPlaceByCalculatedFieldIC |
Eternal ID of this version: | #1025687/1 |
Text MD5: | 703feeadded08677784caa19c6f678f1 |
Transpilation MD5: | 29bc95f724fbd7e59ed16da506329cfe |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-13 19:42:50 |
Source code size: | 226 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 286 |
Referenced in: | [show references] |