static Lisp lispReplace(Lisp l, Lisp searching, Lisp replacement) { if (eq(l, searching)) ret replacement; Lisp x = lisp(l.head); for (Lisp a : l.args) x.add(lispReplace(a, searching, replacement)); ret x; }
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: | 510 / 492 |
Referenced in: | [show references] |