static LS ai_splitConjoinedRules(LS l) { new LS out; for (S s : unnull(l)) { LS split = splitAtDoubleArrow(javaTokWithBrackets(s)); if (l(split) > 2 && containsDoubleArrowAtBeginningOfLine(s)) { for (int i = 0; i < l(split)-1; i++) out.add(split.get(i) + "\n=> " + split.get(i+1)); } else out.add(s); } ret out; }
Began life as a copy of #1021274
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: | #1021355 |
| Snippet name: | ai_splitConjoinedRules - "a => b => c" to "a => b" and "b => c" |
| Eternal ID of this version: | #1021355/3 |
| Text MD5: | c22b7a418cb9a5066b4b6241ae70684a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-09 18:21:37 |
| Source code size: | 364 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 494 / 528 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |