Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1002869 // nlMinimalList - makes list without commas

JavaX fragment (include)

1  
static Lisp nlMinimalList(L list) {
2  
  Lisp tree = lisp("[]");
3  
  for (O s : list) {
4  
    if (s instanceof Lisp)
5  
      tree.add((Lisp) s);
6  
    else if (s instanceof S)
7  
      tree.add(quote((S) s));
8  
    else
9  
      tree.add("?");
10  
  }
11  
  ret tree;
12  
}

Author comment

Began life as a copy of #1002859

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: #1002869
Snippet name: nlMinimalList - makes list without commas
Eternal ID of this version: #1002869/1
Text MD5: 829c8fe3b37fc4a82efc5136a742fa32
Author: stefan
Category: eleu / nl
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-10 02:04:37
Source code size: 253 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 553 / 544
Referenced in: [show references]