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

8
LINES

< > BotCompany Repo | #1023805 // indicesOfCodeTokensContainedInSet

JavaX fragment (include)

static L<Int> indicesOfCodeTokensContainedInSet(LS tok, Set<S> set) {
  new L<Int> l;
  if (nempty(set))
    for (int i = 1; i < l(tok); i += 2)
      if (set.contains(tok.get(i)))
        l.add(i);
  ret l;
}

Author comment

Began life as a copy of #1023449

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: #1023805
Snippet name: indicesOfCodeTokensContainedInSet
Eternal ID of this version: #1023805/1
Text MD5: 3b8e08f055c94df06e17f0232f2037c1
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-09 12:39:05
Source code size: 216 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 193 / 234
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)