static Lisp nlList(L list) { Lisp tree = lisp("[]"); for (O s : list) { if (!tree.isEmpty()) tree.add(","); if (s instanceof Lisp) tree.add((Lisp) s); else if (s instanceof S) tree.add(quote((S) s)); else tree.add("?"); } ret tree; }
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: | 631 / 681 |
Referenced in: | #1002869 - nlMinimalList - makes list without commas #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |