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

6
LINES

< > BotCompany Repo | #1028699 // patternsTreatingFirstNTokensAsVariable

JavaX fragment (include)

static Set<S> patternsTreatingFirstNTokensAsVariable(LLS inputs, int n) {
  Set<S> patterns = ciSet();
  for (LS tok : inputs)
    patterns.add("*" + joinSubList(tok, indexOfCodeToken(n)-1));
  ret patterns;
}

Author comment

Began life as a copy of #1028698

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028699
Snippet name: patternsTreatingFirstNTokensAsVariable
Eternal ID of this version: #1028699/2
Text MD5: bf223f393dfd8a8873ca5457793fba79
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-05 21:36:00
Source code size: 216 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 178 / 209
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)