Libraryless. Click here for Pure Java version (3656L/23K).
1 | static ItIt<Matches> flexMatchIC_iterator(S pat, S input) { |
2 | L<S> tokPat = javaTokNPunctuation_plusAsterisk(pat), tokInput = javaTokNPunctuation_plusAsterisk(input); |
3 | ret flexMatchIC_iterator(pat, tokPat, tokInput); |
4 | } |
5 | |
6 | static ItIt<Matches> flexMatchIC_iterator(Tok pat, Tok input) { |
7 | ret flexMatchIC_iterator(pat.text(), pat.tok(), input.tok()); |
8 | } |
9 | |
10 | static ItIt<Matches> flexMatchIC_iterator(S pat, LS tokPat, LS tokInput) { |
11 | L<Int> varIndices = flexMatchIC_getVarIndices(tokPat, tokInput); |
12 | if (varIndices == null) ret emptyItIt(); |
13 | |
14 | ItIt<LS> spreadInputs = ai_spreadCertainIndices_2_iterator(tokPat, tokInput, varIndices); |
15 | |
16 | ret mapI_notNulls(tok -> getMatches(pat, tok), spreadInputs); |
17 | } |
Began life as a copy of #1021059
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: | #1026110 |
Snippet name: | flexMatchIC_iterator |
Eternal ID of this version: | #1026110/13 |
Text MD5: | 2a4884bf667f76e5527800d6039dce1d |
Transpilation MD5: | b3e7df6ef9f36d62750934a8244453b3 |
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 13:32:04 |
Source code size: | 716 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 261 / 410 |
Version history: | 12 change(s) |
Referenced in: | [show references] |