static L<TripleWeb> ai_sort_topRelationsFirst(L<TripleWeb> l) { final Set<S> topRelations = ai_topRelationsSet(); ret sorted(l, new Comparator<TripleWeb> { public int compare(TripleWeb a, TripleWeb b) { ret -boolDiff(topRelations.contains(a.b), topRelations.contains(b.b)); } }); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013382 |
Snippet name: | ai_sort_topRelationsFirst - sort triples |
Eternal ID of this version: | #1013382/2 |
Text MD5: | 388623057b8ce6067f7036652c4e3bb3 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-03 23:40:52 |
Source code size: | 308 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 426 / 467 |
Version history: | 1 change(s) |
Referenced in: | [show references] |