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

11
LINES

< > BotCompany Repo | #1023691 // wordTok2C

JavaX fragment (include)

scope wordTok2C.

static Map<S, LS> #cache = synchronizedMRUCache(100);

static LS wordTok2C(S s) {
  LS tok = cache.get(s);
  if (tok == null) cache.put(s, tok = codeTokens(wordTok2(s)));
  ret tok;
}

end scope

Author comment

Began life as a copy of #1023690

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023691
Snippet name: wordTok2C
Eternal ID of this version: #1023691/3
Text MD5: 9f0209de3fef6d1ed934075afc67c1a5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-02 20:42:52
Source code size: 222 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 277 / 290
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)