1 | static L<WebRelation> web_dropConfirmedPossibles(L<WebRelation> l) { |
2 | if (empty(l)) ret l; |
3 | new HashSet<T3<S>> index; |
4 | for (WebRelation r : l) |
5 | index.add(tripleToLower(web_relationToTriple(r))); |
6 | new Matches m; |
7 | L<WebRelation> out = emptyListWithCapacity(l); |
8 | for (WebRelation r : l) |
9 | if (!(swic(web_text(r), "possibly ", m) && index.contains( |
10 | tripleToLower(t3(web_text(r.a), m.rest(), web_text(r.b)))))) |
11 | out.add(r); |
12 | ret out; |
13 | } |
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: | #1012098 |
Snippet name: | web_dropConfirmedPossibles |
Eternal ID of this version: | #1012098/4 |
Text MD5: | 49c4233893af61cc6617090bd51a1f73 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-23 19:44:31 |
Source code size: | 465 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 483 / 476 |
Version history: | 3 change(s) |
Referenced in: | [show references] |