1 | static L<Matches> flexMatchIC2_left_multi(L<S> tokpat, L<S> toks) { |
2 | new L<Matches> out; |
3 | if (l(tokpat) == 7 && eq(tokpat.get(1), "*") && neq(tokpat.get(3), "*") && eq(tokpat.get(5), "*")) { |
4 | S middle = tokpat.get(3); |
5 | for (int i : reverseIndexesOf(toks, middle)) |
6 | if (i > 1 && i < l(toks)-2) |
7 | out.add(new Matches(join(subList(toks, 1, i-1)), join(subList(toks, i+2, l(toks)-1)))); |
8 | } else { |
9 | new Matches m; |
10 | if (flexMatchIC2_left(tokpat, toks, m, false)) |
11 | out.add(m); |
12 | } |
13 | ret out; |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007991 |
Snippet name: | flexMatchIC2_left_multi - this seems very incomplete |
Eternal ID of this version: | #1007991/9 |
Text MD5: | 6e15f268d668a2191c24d54825762588 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-02 23:12:00 |
Source code size: | 530 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 585 / 596 |
Version history: | 8 change(s) |
Referenced in: | [show references] |