static LS ai_categoriesForWord(S word) { Map<S, Set<S>> wordCategories = ai_wordCategoriesWithElements(); new L<S> cats; for (S cat : keys(wordCategories)) if (contains(wordCategories.get(cat), word)) cats.add(cat); ret cats; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018191 |
Snippet name: | ai_categoriesForWord - for current language |
Eternal ID of this version: | #1018191/1 |
Text MD5: | 8e4fd772ccaa600e970ffae0dbfbfb3c |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-09 17:15:13 |
Source code size: | 252 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 400 / 404 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |