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).

static new ThreadLocal<Set<S>> ai_languages_value;

static Set<S> ai_languages() {
  Set<S> set = ai_languages_value!;
  if (nempty(set)) ret set;
  ret litciset(ai_language());
}

svoid _onLoad_ai_languages {
  _threadInfo_addMakerAndRetriever(
    voidfunc(Map map) { mapPut(map, 'ai_languages_value, ai_languages_value!) },
    voidfunc(Map map) { ai_setLanguages((Set<S>) map.get('ai_languages_value)) });
}

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: 253 / 366
Version history: 5 change(s)
Referenced in: [show references]