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

9
LINES

< > BotCompany Repo | #1022225 // subListEqualsIC

JavaX fragment (include)

sbool subListEqualsIC(LS l, LS pat, int i) {
  if (i < 0) false;
  int j = i+l(pat);
  if (j > l(l)) false;
  for (int k = i; k < j; k++)
    if (neqic(l.get(k), pat.get(k-i)))
      false;
  true;
}

Author comment

Began life as a copy of #1020304

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: #1022225
Snippet name: subListEqualsIC
Eternal ID of this version: #1022225/3
Text MD5: a4e7e054f5156c1ee0df9ad6dd1f24ec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-11 13:33:40
Source code size: 207 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 287 / 314
Version history: 2 change(s)
Referenced in: [show references]