1 | static Lisp nlRemoveWord(S word, Lisp in) { |
2 | if (in.isLeaf() && eqic(in.head, word)) |
3 | ret lisp("[]"); |
4 | Lisp lisp = new Lisp(in.head); |
5 | for (int i = 0; i < in.size(); i++) { |
6 | Lisp translated = nlRemoveWord(word, in.get(i)); |
7 | if (!translated.is("[]", 0)) |
8 | lisp.add(translated); |
9 | } |
10 | ret lisp; |
11 | } |
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: | #1002874 |
Snippet name: | nlRemoveWord |
Eternal ID of this version: | #1002874/1 |
Text MD5: | d6e7fa8369061ec1b19890dfc078448c |
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 19:26:00 |
Source code size: | 320 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 614 / 610 |
Referenced in: | [show references] |