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

7
LINES

< > BotCompany Repo | #1014421 // find2plusIndex - returns C index

JavaX fragment (include)

1  
static Pair<S[], Int> find2plusIndex(L<S> pat, L<S> tok) {
2  
  for (int idx = 0; idx < tok.size(); idx += 2) {
3  
    S[] result = find2(pat, tok, idx);
4  
    if (result != null) ret pair(result, idx+1);
5  
  }
6  
  null;
7  
}

Author comment

Began life as a copy of #1001234

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014421
Snippet name: find2plusIndex - returns C index
Eternal ID of this version: #1014421/3
Text MD5: 5dd8e14d6e6f1a22ac8d678f988ff8cc
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-21 17:09:18
Source code size: 216 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 439 / 470
Version history: 2 change(s)
Referenced in: [show references]