1 | // f : L -> L |
2 | static L xtok_recurse_limited_debug(O f, L l, int limit) {
|
3 | print("xtok_recurse " + f + " limit " + limit + " on " + struct(l));
|
4 | l = (L) callF(f, l); |
5 | print("xtok_recurse now: " + struct(l));
|
6 | if (limit <= 1) ret l; |
7 | for (int i = 1; i < l(l); i += 2) {
|
8 | O o = l.get(i); |
9 | if (o instanceof L) |
10 | l.set(i, xtok_recurse_limited_debug(f, (L) o, limit-1)); |
11 | } |
12 | ret l; |
13 | } |
Began life as a copy of #1008804
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: | #1008805 |
| Snippet name: | xtok_recurse_limited_debug |
| Eternal ID of this version: | #1008805/3 |
| Text MD5: | ff75fbfd08abd06cd51349f8c909c356 |
| Author: | stefan |
| Category: | javax / parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-09 02:21:14 |
| Source code size: | 406 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 585 / 645 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |