Libraryless. Click here for Pure Java version (4242L/27K).
1 | static ItIt<L> rewriteWithDollarVars_withBrackets_iterator(S input, S inputPattern, S... outPatterns) { |
2 | ret mapI(flexMatchDollarVarsIC_withBrackets_iterator(inputPattern, input), map -> getEmits(r { |
3 | // group it |
4 | S grouped = replaceVars_optRound(inputPattern, map); |
5 | if (neq(grouped, input)) |
6 | emit(ext grouped(input)); |
7 | |
8 | // rewrite it |
9 | for (S pat : outPatterns) |
10 | emit(replaceVars_optRound(pat, map)); |
11 | })); |
12 | } |
Began life as a copy of #1026114
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: | #1026122 |
Snippet name: | rewriteWithDollarVars_withBrackets_iterator |
Eternal ID of this version: | #1026122/4 |
Text MD5: | 3b6155860643b8b6aad6ad7bc4332c4e |
Transpilation MD5: | 5be8da42b229c520a019f7e2ab5c2049 |
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-25 20:23:47 |
Source code size: | 451 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 195 / 323 |
Version history: | 3 change(s) |
Referenced in: | [show references] |