1 | // f: A -> S |
2 | static <A> L<A> sortByCalculatedFieldIC(Iterable<A> c, final O f) {
|
3 | L<A> l = cloneList(c); |
4 | sort(l, new Comparator<A>() {
|
5 | public int compare(A a, A b) {
|
6 | ret compareIC((S) callF(f, a), (S) callF(f, b)); |
7 | } |
8 | }); |
9 | ret l; |
10 | } |
Began life as a copy of #1006712
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: | #1016503 |
| Snippet name: | sortByCalculatedFieldIC |
| Eternal ID of this version: | #1016503/4 |
| Text MD5: | b456183b661ac9cb316b8d4d2a10da3c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-20 17:04:20 |
| Source code size: | 259 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 716 / 736 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |