1 | // f : L -> L or L -> void |
2 | static L xtok_recurse(O f, L l) {
|
3 | l = or((L) callF(f, l), l); |
4 | for (int i = 1; i < l(l); i += 2) {
|
5 | O o = l.get(i); |
6 | if (o instanceof L) |
7 | l.set(i, xtok_recurse(f, (L) o)); |
8 | } |
9 | ret l; |
10 | } |
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: | #1008802 |
| Snippet name: | xtok_recurse |
| Eternal ID of this version: | #1008802/4 |
| Text MD5: | 6fac129f81835920a6c369c0167b07d4 |
| 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:47:10 |
| Source code size: | 236 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 725 / 786 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |