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)

static Map<S, O> flexFunction_functions = synchroHashMap();

static O flexFunction(S name, O... args) {
  O f = flexFunction_functions.get(name);
  if (f != null)
    ret callF(f, args);
  ret callMC(name + "_default", args);
}

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: 504 / 517
Referenced in: [show references]