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

11
LINES

< > BotCompany Repo | #1023232 // ai_simplifyUsingWordSets [dev.]

JavaX fragment (include)

1  
static Set<LS> ai_simplifyUsingWordSets(LS tok, Collection<SS> maps) {
2  
  Set<S> words = codeTokensAsCISet(tok);
3  
  new LinkedHashSet<LS> out;
4  
  for unnull (SS map : maps)
5  
    if (isSuperSet(words, keySet(map))) {
6  
      new LS tok2;
7  
      removeToken(tok);
8  
      out.add(tok2);
9  
    }
10  
  ret out;
11  
}

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: #1023232
Snippet name: ai_simplifyUsingWordSets [dev.]
Eternal ID of this version: #1023232/1
Text MD5: d3ddc6599f4304a39373150d2bced824
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-18 22:15:45
Source code size: 304 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 263 / 293
Referenced in: [show references]