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

7
LINES

< > BotCompany Repo | #1005187 // lispReplace

JavaX fragment (include)

1  
static Lisp lispReplace(Lisp l, Lisp searching, Lisp replacement) {
2  
  if (eq(l, searching)) ret replacement;
3  
  Lisp x = lisp(l.head);
4  
  for (Lisp a : l.args)
5  
    x.add(lispReplace(a, searching, replacement));
6  
  ret x;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005187
Snippet name: lispReplace
Eternal ID of this version: #1005187/1
Text MD5: 45b98c71774463c762dbe4c8a9cf11ad
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-19 16:32:50
Source code size: 225 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 512 / 495
Referenced in: [show references]