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

6
LINES

< > BotCompany Repo | #1026180 // arbitraryVarsFlexFindIC_iterator - flexFind with arbitrary variables

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

Libraryless. Click here for Pure Java version (3860L/24K).

// vars can be a "degenerate set" (e.g. made with predicateToSet)
static ItIt<SS> arbitraryVarsFlexFindIC_iterator(Set<S> vars, S pat, S input) {
  new LS usedVars;
  S starsPat = arbitraryVarsToStars(pat, vars, usedVars);
  ret mapI(flexFindIC_iterator(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 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026180
Snippet name: arbitraryVarsFlexFindIC_iterator - flexFind with arbitrary variables
Eternal ID of this version: #1026180/3
Text MD5: f69ea055c467731bcf0eca65fd31f242
Transpilation MD5: 0f81f8d1ea608f349bc9810b676e2e23
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-17 14:52:41
Source code size: 329 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 245 / 343
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)