1 | static S conceptLanguageToEnglish_superSimple(S s) { |
2 | Map<S, AIConcept> map = aiConceptsMap_cached(); |
3 | L<S> tok = javaTok(s); |
4 | for (int i = 1; i < l(tok); i += 2) { |
5 | AIConcept c = map.get(tok.get(i)); |
6 | if (c != null) |
7 | tok.set(i, quote(c.name)); |
8 | } |
9 | ret join(tok); |
10 | } |
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: | #1007164 |
Snippet name: | conceptLanguageToEnglish_superSimple |
Eternal ID of this version: | #1007164/4 |
Text MD5: | 0d8bb65d36cdd79233e5e5389046af33 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-22 22:11:49 |
Source code size: | 290 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 539 / 534 |
Version history: | 3 change(s) |
Referenced in: | [show references] |