1 | static bool matchWordSequence(O _pat, O _real, IMatchF matchF, Map map) { |
2 | if (!(_pat << WordSequence && _real << WordSequence)) false; |
3 | WordSequence pat = cast _pat; |
4 | WordSequence real = cast _real; |
5 | int n = l(pat.l); |
6 | if (n != l(real.l)) false; |
7 | for i to n: |
8 | if (!matchF.get(pat.l.get(i), real.l.get(i), map)) false; |
9 | true; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012752 |
Snippet name: | matchWordSequence |
Eternal ID of this version: | #1012752/4 |
Text MD5: | 8e87058f7f7d2afeece33a3458b228a7 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-11 20:04:34 |
Source code size: | 346 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 407 / 449 |
Version history: | 3 change(s) |
Referenced in: | [show references] |