1 | svoid gazelle_changeInTypesForRulesWithMultipleInputs(RuleEngine2 e) { |
2 | for (RuleEngine2.Rule r : e.rules) { |
3 | int i = 0; |
4 | while (i < l(r.insWithType) && eq(r.insWithType.get(i).type, 'standard)) ++i; |
5 | if (i > 1) { |
6 | reverseInPlace(subList(r.insWithType, 0, i)); |
7 | for (int j = 1; j < i; j++) |
8 | r.insWithType.get(j).type = "history-" + (j+1); |
9 | } |
10 | } |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021778 |
Snippet name: | gazelle_changeInTypesForRulesWithMultipleInputs (put last line first) |
Eternal ID of this version: | #1021778/7 |
Text MD5: | 9b4fd6ea6f1bc1027fd55aa87baf5857 |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-18 22:31:09 |
Source code size: | 387 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 309 / 325 |
Version history: | 6 change(s) |
Referenced in: | [show references] |