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

12
LINES

< > BotCompany Repo | #1007860 // lispTranslate - apply SS translation map

JavaX fragment (include)

static Lisp lispTranslate(Lisp x, final SS map) {
  ret lispMap_after(x, func(Lisp l) {
    S s = map.get(l.head);
    if (s != null)
      ret lisp(s, l.args);
    null;
  });
}

static Lisp lispTranslate(SS map, Lisp x) {
  ret lispTranslate(x, map);
}

Author comment

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: 374 / 410
Version history: 3 change(s)
Referenced in: [show references]