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

7
LINES

< > BotCompany Repo | #1017296 // parseResultsByNumberOfAssumptions (sorting function)

JavaX fragment (include)

1  
static L<ParseResult1> parseResultsByNumberOfAssumptions(Collection<ParseResult1> l) {
2  
  ret sortedByComparator(l, new Comparator<ParseResult1>() {
3  
    public int compare(ParseResult1 a, ParseResult1 b) {
4  
      ret cmp(l(a.assumptions), l(b.assumptions));
5  
    }
6  
  });
7  
}

Author comment

Began life as a copy of #1017209

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: #1017296
Snippet name: parseResultsByNumberOfAssumptions (sorting function)
Eternal ID of this version: #1017296/2
Text MD5: 5be43d85bdbb84b06553887e0b063f2a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-17 12:20:16
Source code size: 275 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 352 / 392
Version history: 1 change(s)
Referenced in: [show references]