svoid gazelle_changeInTypesForRulesWithMultipleInputs(RuleEngine2 e) { for (RuleEngine2.Rule r : e.rules) { int i = 0; while (i < l(r.insWithType) && eq(r.insWithType.get(i).type, 'standard)) ++i; if (i > 1) { reverseInPlace(subList(r.insWithType, 0, i)); for (int j = 1; j < i; j++) r.insWithType.get(j).type = "history-" + (j+1); } } }
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: | 308 / 323 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |