static S ai_matrixGet(S topic, S category) { new LinkedHashSet<S> v; new LinkedHashSet<S> u; if (has_verified(topic, "is", category)) v.add("yes"); if (has_verified(topic, "is not", category)) v.add("no"); if (has(topic, "is", category)) u.add("yes"); if (has(topic, "is not", category)) u.add("no"); v.addAll(ai_matrixUnpack(ai_texts_verified(topic, "$X", category))); u.addAll(ai_matrixUnpack(ai_texts(topic, "$X", category))); u.removeAll(v); new L<S> l; if (nempty(v)) l.add(joinWithComma(v)); if (nempty(u)) l.add("unverified: " + joinWithComma(u)); ret join(". ", l); }
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: | #1013059 |
Snippet name: | ai_matrixGet |
Eternal ID of this version: | #1013059/4 |
Text MD5: | 7606c36e62b890147d5d3d3d5a2b8bb1 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-24 19:45:48 |
Source code size: | 623 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 478 / 476 |
Version history: | 3 change(s) |
Referenced in: | [show references] |