1 | static L<TripleWeb> ai_sort_topRelationsFirst(L<TripleWeb> l) { |
2 | final Set<S> topRelations = ai_topRelationsSet(); |
3 | ret sorted(l, new Comparator<TripleWeb> { |
4 | public int compare(TripleWeb a, TripleWeb b) { |
5 | ret -boolDiff(topRelations.contains(a.b), topRelations.contains(b.b)); |
6 | } |
7 | }); |
8 | } |
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: | 427 / 469 |
Version history: | 1 change(s) |
Referenced in: | [show references] |