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

13
LINES

< > BotCompany Repo | #1013146 // evaluateFunctionsAsMap - calls & makes standard functions

JavaX fragment (include)

1  
// map will return exception as value in case of error
2  
static Map<S, O> evaluateFunctionsAsMap(Collection<S> functions, O... args) {
3  
  Class c = loadFunctions_cached(functions);
4  
  new LinkedHashMap<S, O> map;
5  
  for ping (S f : functions) {
6  
    try {
7  
      map.put(f, preciseCall(c, f, args));
8  
    } catch e {
9  
      map.put(f, e);
10  
    }
11  
  }
12  
  ret map;
13  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013146
Snippet name: evaluateFunctionsAsMap - calls & makes standard functions
Eternal ID of this version: #1013146/2
Text MD5: cb73c560c8df8b295054e74c8daf39d4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-26 07:05:34
Source code size: 364 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 355 / 396
Version history: 1 change(s)
Referenced in: [show references]