1 | // f : func(S) -> S |
2 | sS javaTokWithBrackets_recursiveTransform(fO f, S s) {
|
3 | ret join(mapCodeTokens(javaTokWithBrackets(s), func(S t) -> S {
|
4 | if (!isCurlyBraced(t)) ret (S) callF(f, t); |
5 | ret optCurly(javaTokWithBrackets_recursiveTransform(f, uncurly(t))); |
6 | })); |
7 | } |
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: | #1021295 |
| Snippet name: | javaTokWithBrackets_recursiveTransform - apply function to every code token and group [dev.] |
| Eternal ID of this version: | #1021295/3 |
| Text MD5: | 2b0e63865c166fedcc861201bee78b8e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-07 16:44:41 |
| Source code size: | 276 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 520 / 543 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |