Libraryless. Click here for Pure Java version (4995L/33K).
svoid rewriteWithDollarVars(S input, S inputPattern, S... outPatterns) { SS map = flexMatchDollarVarsIC_first(inputPattern, input); if (map == null) ret; // group it emitUnlessEqualTo(input, replaceVars_optRound(inputPattern, map)); // rewrite it for (S pat : outPatterns) emit(replaceVars_optRound(pat, map)); }
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: | #1026114 |
Snippet name: | rewriteWithDollarVars - uses emit(S) |
Eternal ID of this version: | #1026114/2 |
Text MD5: | ccba02002d1b559c0dc520686b8d7ace |
Transpilation MD5: | 0eb0f2d9e9dbb61c425c1f8e5ebba2e7 |
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-22 16:24:11 |
Source code size: | 344 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 235 / 322 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1026122 - rewriteWithDollarVars_withBrackets_iterator |