Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1023301 // ai_languages - which language(s) are we in? - returns a ciSet

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2083L/13K).

1  
static new ThreadLocal<Set<S>> ai_languages_value;
2  
3  
static Set<S> ai_languages() {
4  
  Set<S> set = ai_languages_value!;
5  
  if (nempty(set)) ret set;
6  
  ret litciset(ai_language());
7  
}
8  
9  
svoid _onLoad_ai_languages {
10  
  _threadInfo_addMakerAndRetriever(
11  
    voidfunc(Map map) { mapPut(map, 'ai_languages_value, ai_languages_value!) },
12  
    voidfunc(Map map) { ai_setLanguages((Set<S>) map.get('ai_languages_value)) });
13  
}

Author comment

Began life as a copy of #1017358

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023301
Snippet name: ai_languages - which language(s) are we in? - returns a ciSet
Eternal ID of this version: #1023301/6
Text MD5: 5f2cfd339dab03f0bdf65546d88d6186
Transpilation MD5: c6d9f4b0553ed7192e22ea1fc9f9851e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-08 15:49:09
Source code size: 423 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 188 / 278
Version history: 5 change(s)
Referenced in: [show references]