static Lisp snlSimplifyJuxta(Lisp tree) { if (!isJuxta(tree)) ret tree; new L<S> op; new L<Lisp> parts; for (Lisp part : tree) if (part.isEmpty() && startsWithLowerCase(part.head)) op.add(part.head); else { op.add("*"); parts.add(part); } Lisp result = lisp(join(" ", op), parts); print("Simplified " + tree + " to " + result); result.more = tree.more; ret result; }
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: | #1002800 |
Snippet name: | snlSimplifyJuxta - UNUSED |
Eternal ID of this version: | #1002800/1 |
Text MD5: | f4943777c9f4d63043dc11a33874331c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-25 20:49:37 |
Source code size: | 431 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 627 / 556 |
Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) |