1 | static Lisp nlList(L list) { |
2 | Lisp tree = lisp("[]"); |
3 | for (O s : list) { |
4 | if (!tree.isEmpty()) tree.add(","); |
5 | if (s instanceof Lisp) |
6 | tree.add((Lisp) s); |
7 | else if (s instanceof S) |
8 | tree.add(quote((S) s)); |
9 | else |
10 | tree.add("?"); |
11 | } |
12 | ret tree; |
13 | } |
Began life as a copy of #1002789
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: | #1002859 |
Snippet name: | nlList - converts a string or lisp list to an NL representation |
Eternal ID of this version: | #1002859/1 |
Text MD5: | e0f9ac38e49603aa57bbb3294474b257 |
Author: | stefan |
Category: | eleu / nl |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-03-05 20:40:42 |
Source code size: | 287 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 632 / 682 |
Referenced in: | [show references] |