1 | static IterableIterator<SS> gSat(S statement) { |
2 | final new L<S> vars; |
3 | S pat = upperCaseVarsToStars(statement, vars); |
4 | ret mapI(func(Matches m) { |
5 | new SS map; |
6 | for (int i = 0; i < l(m.m); i++) |
7 | map.put(vars.get(i), m.unq(i)); |
8 | ret map; |
9 | }, gJMatch(pat)); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004299 |
Snippet name: | gSat - satisfy a statement with variables in log |
Eternal ID of this version: | #1004299/1 |
Text MD5: | 8a139c61633afd7d8b511b4b2230a55a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-13 02:48:37 |
Source code size: | 283 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 503 / 507 |
Referenced in: | [show references] |