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

11
LINES

< > BotCompany Repo | #1030966 // collectAngleBracketVars - drops the brackets

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3141L/19K).

1  
static Set<S> collectAngleBracketVars(S s) {
2  
  ret collectAngleBracketVars(javaTokWithAngleBrackets(s));
3  
}
4  
5  
static Set<S> collectAngleBracketVars(LS tok) {
6  
  Set<S> set = ciSet();
7  
  for i over tok:
8  
    if (isAngleBracketVar(tok.get(i)))
9  
      set.add(deAngleBracket(tok.get(i)));
10  
  ret set;
11  
}

Author comment

Began life as a copy of #1017271

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030966
Snippet name: collectAngleBracketVars - drops the brackets
Eternal ID of this version: #1030966/3
Text MD5: 27167728e4f5643a9ef5bdb0feb0bbab
Transpilation MD5: 70aeb2ac046207e5476ea1ae4e065d37
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-16 16:22:34
Source code size: 302 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 162 / 238
Version history: 2 change(s)
Referenced in: [show references]