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).

static Set<S> collectAngleBracketVars(S s) {
  ret collectAngleBracketVars(javaTokWithAngleBrackets(s));
}

static Set<S> collectAngleBracketVars(LS tok) {
  Set<S> set = ciSet();
  for i over tok:
    if (isAngleBracketVar(tok.get(i)))
      set.add(deAngleBracket(tok.get(i)));
  ret set;
}

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: 160 / 236
Version history: 2 change(s)
Referenced in: [show references]