static S ai_renderThingDescriptionWithParts(S s) { S what = ai_lookup(s); if (what == null) null; L<S> parts = ai_partsOf(what); if (empty(parts)) ret what; new L<S> l; for (S part : parts) { S value = ai_lookup(print(part + " of " + s)); S p = dropArticle(part); l.add(value != null ? p + "=" + value : "unknown " + p); } ret what + " with " + textOut_and(l); }
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: | #1012208 |
Snippet name: | ai_renderThingDescriptionWithParts |
Eternal ID of this version: | #1012208/4 |
Text MD5: | 07c32eb8250f4d7cada4273a2179c43d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-23 21:38:30 |
Source code size: | 402 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 390 / 419 |
Version history: | 3 change(s) |
Referenced in: | [show references] |