1 | static Lisp lispTranslate(Lisp x, final SS map) { |
2 | ret lispMap_after(x, func(Lisp l) { |
3 | S s = map.get(l.head); |
4 | if (s != null) |
5 | ret lisp(s, l.args); |
6 | null; |
7 | }); |
8 | } |
9 | |
10 | static Lisp lispTranslate(SS map, Lisp x) { |
11 | ret lispTranslate(x, map); |
12 | } |
Began life as a copy of #1007717
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: | #1007860 |
Snippet name: | lispTranslate - apply SS translation map |
Eternal ID of this version: | #1007860/4 |
Text MD5: | 7477b89ab66a77998bf5b163eaa595f9 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-12 00:20:50 |
Source code size: | 265 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 442 / 480 |
Version history: | 3 change(s) |
Referenced in: | [show references] |