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

7
LINES

< > BotCompany Repo | #1018540 // sortByIndex2 - different typing

JavaX fragment (include)

static <A> void sortByIndex2(LL<A> l, final int index) {
  sort(l, new Comparator<L<A>>() {
    public int compare(L<A> a, L<A> b) {
      ret cmp(a.get(index), b.get(index));
    }
  });
}

Author comment

Began life as a copy of #1001539

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018540
Snippet name: sortByIndex2 - different typing
Eternal ID of this version: #1018540/1
Text MD5: 69a19cd1d14af837c7fda46b75fb0ddb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-03 22:40:50
Source code size: 195 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 229 / 274
Referenced in: [show references]