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

8
LINES

< > BotCompany Repo | #1018376 // tok_marchPatternThroughInput

JavaX fragment (include)

1  
static LL<S> tok_marchPatternThroughInput(LS patTok, LS inputTok) {
2  
  int lp = l(patTok);
3  
  int n = l(inputTok)-lp+1;
4  
  new LL<S> out;
5  
  for (int i = 0; i < n; i += 2)
6  
    out.add(subList(inputTok, i, i+lp));
7  
  ret out;
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018376
Snippet name: tok_marchPatternThroughInput
Eternal ID of this version: #1018376/1
Text MD5: d483a1454de61e09abc72d67ae0cb129
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-23 14:59:10
Source code size: 228 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 354 / 380
Referenced in: [show references]