static S ai_specReturn_giveMe(S s) { if (eqic(firstWord(s), "all")) { S things = dropFirstWord("all", s); ret "Have " + n(ai_countInstances(ai_allToA(s)), things); } new Matches m; if (swic_trim(s, "a random ", m)) ret ai_randomInstance(a(m.rest())); null; }
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: | #1012442 |
Snippet name: | ai_specReturn_giveMe |
Eternal ID of this version: | #1012442/4 |
Text MD5: | 6713fc7b838cde41ad1457bd285940f7 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-03 20:15:44 |
Source code size: | 289 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 400 / 424 |
Version history: | 3 change(s) |
Referenced in: | [show references] |