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

8
LINES

< > BotCompany Repo | #1005369 // flexFunction - call a redefinable function

JavaX fragment (include)

1  
static Map<S, O> flexFunction_functions = synchroHashMap();
2  
3  
static O flexFunction(S name, O... args) {
4  
  O f = flexFunction_functions.get(name);
5  
  if (f != null)
6  
    ret callF(f, args);
7  
  ret callMC(name + "_default", args);
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005369
Snippet name: flexFunction - call a redefinable function
Eternal ID of this version: #1005369/1
Text MD5: f3ea8efe59b5e9720f02fee0c160dd63
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-09 19:26:01
Source code size: 234 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 561 / 581
Referenced in: [show references]