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

8
LINES

< > BotCompany Repo | #1023449 // indicesOfCodeTokensContainedInMap

JavaX fragment (include)

static <A> L<Int> indicesOfCodeTokensContainedInMap(LS tok, Map<S, A> map) {
  new L<Int> l;
  if (nempty(map))
    for (int i = 1; i < l(tok); i += 2)
      if (map.containsKey(tok.get(i)))
        l.add(i);
  ret l;
}

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: #1023449
Snippet name: indicesOfCodeTokensContainedInMap
Eternal ID of this version: #1023449/1
Text MD5: b76f0f166a0ac66a3aa9e75d594e03ba
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-22 20:26:53
Source code size: 226 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 228 / 273
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1023805 - indicesOfCodeTokensContainedInSet