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

7
LINES

< > BotCompany Repo | #1026181 // bracketedTokenIndices

JavaX fragment (include)

static L<Int> bracketedTokenIndices(LS tok) {
  new L<Int> l;
  for (int i = 1; i < l(tok); i += 2)
    if (isRoundOrCurlyBracketed_simple(tok.get(i)))
      l.add(i);
  ret l;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026181
Snippet name: bracketedTokenIndices
Eternal ID of this version: #1026181/1
Text MD5: 97e69b01aa8bae9476e0c84b30932b52
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-27 23:46:50
Source code size: 184 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 245 / 288
Referenced in: [show references]