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

14
LINES

< > BotCompany Repo | #1008262 // lispFormatXYZ

JavaX fragment (include)

1  
static Lisp lispFormatXYZ(Lisp l, Lisp... arguments) {
2  
  if (l.isLeaf()) {
3  
    int idx = xyzVarToIndex(l.head);
4  
    if (idx > 0) {
5  
      Lisp a = get(arguments, idx-1);
6  
      if (a != null) ret a;
7  
    }
8  
    ret l;
9  
  }
10  
  Lisp l2 = lisp(l.head);
11  
  for (Lisp a : l)
12  
    l2.add(lispFormatXYZ(a, arguments));
13  
  ret l2;
14  
}

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: #1008262
Snippet name: lispFormatXYZ
Eternal ID of this version: #1008262/3
Text MD5: 02a045f2052f619e75ca41e79237db90
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-04 13:45:14
Source code size: 328 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 566 / 550
Version history: 2 change(s)
Referenced in: [show references]