svoid ai_emitPossibleIsGroupings(LS facts) { for (S fact : unnull(facts)) { L<S> tok = javaTokPlus3Brackets(fact); L<Int> l = indicesOfIC(tok, "is"); if (l(l) == 1) { int i = first(l); emitFact(quote( curly(trimJoinSubList(tok, 0, i-1)) + joinSubList(tok, i-1, i+2) + curly(trimJoinSubList(tok, i+2))) + " is a possible grouping of " + quote(fact)); } } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018026 |
Snippet name: | ai_emitPossibleIsGroupings |
Eternal ID of this version: | #1018026/4 |
Text MD5: | 791b422f876ac00eac43a3f5bccebdcf |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-26 17:05:54 |
Source code size: | 432 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 342 / 380 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |