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

10
LINES

< > BotCompany Repo | #1022267 // codeTokenSubListEqualsIC_skipFirst

JavaX fragment (include)

// i = C index
sbool codeTokenSubListEqualsIC_skipFirst(LS l, LS pat, int i) {
  if (i < 0) false;
  int j = i+l(pat)-1;
  if (j > l(l)) false;
  for (int k = i+2; k < j; k += 2)
    if (neqic(l.get(k), pat.get(k-i+1)))
      false;
  true;
}

Author comment

Began life as a copy of #1022229

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022267
Snippet name: codeTokenSubListEqualsIC_skipFirst
Eternal ID of this version: #1022267/1
Text MD5: 62778529d9806bc33bc711ce7c8e0cda
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-12 13:33:00
Source code size: 251 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 260 / 298
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)