1 | static S ai_renderThingDescriptionWithParts(S s) { |
2 | S what = ai_lookup(s); |
3 | if (what == null) null; |
4 | L<S> parts = ai_partsOf(what); |
5 | if (empty(parts)) ret what; |
6 | new L<S> l; |
7 | for (S part : parts) { |
8 | S value = ai_lookup(print(part + " of " + s)); |
9 | S p = dropArticle(part); |
10 | l.add(value != null ? p + "=" + value : "unknown " + p); |
11 | } |
12 | ret what + " with " + textOut_and(l); |
13 | } |
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: | 391 / 421 |
Version history: | 3 change(s) |
Referenced in: | [show references] |