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

11
LINES

< > BotCompany Repo | #1003400 - sorted - takes a Collection<A> and an optional func(A, A) -> int

JavaX fragment (include)

static <A> L<A> sorted(Collection<A> c, final O comparator) {
  L<A> l = cloneList(c);
  sort(l, makeComparator(comparator));
  ret l;
}

static <A> L<A> sorted(Collection<A> c) {
  L<A> l = cloneList(c);
  sort(l);
  ret l;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1003400
Snippet name: sorted - takes a Collection<A> and an optional func(A, A) -> int
Eternal ID of this version: #1003400/2
Text MD5: 7d69fdb4142518c9f73ae050f97d0361
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-09 16:45:08
Source code size: 236 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 442 / 770
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1003400 & http://1003400.tinybrain.de