Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1007991 // flexMatchIC2_left_multi - this seems very incomplete

JavaX fragment (include)

static L<Matches> flexMatchIC2_left_multi(L<S> tokpat, L<S> toks) {
  new L<Matches> out;
  if (l(tokpat) == 7 && eq(tokpat.get(1), "*") && neq(tokpat.get(3), "*") && eq(tokpat.get(5), "*")) {
    S middle = tokpat.get(3);
    for (int i : reverseIndexesOf(toks, middle))
      if (i > 1 && i < l(toks)-2)
        out.add(new Matches(join(subList(toks, 1, i-1)), join(subList(toks, i+2, l(toks)-1))));
  } else {
    new Matches m;
    if (flexMatchIC2_left(tokpat, toks, m, false))
      out.add(m);
  }
  ret out;
}

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: 584 / 594
Version history: 8 change(s)
Referenced in: [show references]