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

9
LINES

< > BotCompany Repo | #1026192 // arbitraryVarsFlexMatchIC_tok_iterator - flexMatch with arbitrary variables and pretokenization (keep punctuation)

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

Transpiled version (3702L) is out of date.

static ItIt<SS> arbitraryVarsFlexMatchIC_tok_iterator(Set<S> vars, Tok pat, Tok input) {
  new LS usedVars;
  LS starsPat = arbitraryVarsToStars(pat.tok(), vars, usedVars);
  ifdef arbitraryVarsFlexMatchIC_tok_iterator_debug
    printStruct(+starsPat);
  endifdef
  ret mapI(flexMatchIC_tok_iterator(new Tok(starsPat), input),
    m -> matchesToMapUsingVarList_ciMap(m, usedVars));
}

Author comment

Began life as a copy of #1026163

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026192
Snippet name: arbitraryVarsFlexMatchIC_tok_iterator - flexMatch with arbitrary variables and pretokenization (keep punctuation)
Eternal ID of this version: #1026192/4
Text MD5: 0a19215d2768a6d9bc112a04a1544b4f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-28 14:02:25
Source code size: 391 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 298
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)