1 | static void ai_spec_answerPattern() { |
2 | if (!ai_postingInSubSpace()) ret; |
3 | for (S q : ai_texts_unquote("$X", "should be", "answered")) { |
4 | for (Pair<S> p : ai_texts_xy_unquoteBoth("$X", "is an answer pattern for", "$Y")) { |
5 | SS match = matchDollarVarsIC(p.b, q); |
6 | if (match != null) |
7 | post(".", "Look for answer pattern", quote(formatDollarVarsIC(p.a, match))); |
8 | else |
9 | print("no match: " + unquote(p.b) + " / " + q); |
10 | } |
11 | } |
12 | } |
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: | #1012416 |
Snippet name: | ai_spec_answerPattern |
Eternal ID of this version: | #1012416/13 |
Text MD5: | ec7e566e6b7c476f25d9caeb25ffcb01 |
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-02 18:44:38 |
Source code size: | 469 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 516 / 483 |
Version history: | 12 change(s) |
Referenced in: | [show references] |