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

22
LINES

< > BotCompany Repo | #1032676 // StandardFunctions

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

Libraryless. Click here for Pure Java version (15053L/93K).

// only works within a module
sclass StandardFunctions is AutoCloseable {
  volatile SS map;
  AutoCloseable updater;

  *() {  
    updater = dm_onSnippetEdited(voidfunc(S id) {
      if (sameSnippetID(id, #1006654) || sameSnippetID(id, #761))
        map = null;
    });
  }
  
  // name to snippetID
  SS getMap() {
    if (map == null) map = stdFunctions_uncached();
    ret map;
  }
  
  public void close {
    dispose updater;
  }
}

Author comment

Began life as a copy of #1020404

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032676
Snippet name: StandardFunctions
Eternal ID of this version: #1032676/1
Text MD5: 5f9b3b9133040f55c3a164f1e5521706
Transpilation MD5: e54867f260e88a2250dce218663a8e1a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-01 18:10:46
Source code size: 462 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 83 / 181
Referenced in: [show references]