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

9
LINES

< > BotCompany Repo | #1014662 // sortedByComparator

JavaX fragment (include)

1  
static <A> L<A> sortedByComparator(Collection<A> l, Comparator<A> c) {
2  
  L<A> l2 = cloneList(l);
3  
  sort(l2, c);
4  
  ret l2;
5  
}
6  
7  
static <A> L<A> sortedByComparator(Comparator<A> c, Collection<A> l) {
8  
  ret sortedByComparator(l, c);
9  
}

Author comment

Began life as a copy of #1006223

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1014662
Snippet name: sortedByComparator
Eternal ID of this version: #1014662/2
Text MD5: 8b595afd54f0c81d7c209e05bbf935a3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-15 03:28:41
Source code size: 233 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 786
Version history: 1 change(s)
Referenced in: [show references]