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

11
LINES

< > BotCompany Repo | #1021999 // passParams

JavaX fragment (include)

1  
static O[] passParams(O[] _, S... params) {
2  
  Map map = paramsToMap(_);
3  
  new L l;
4  
  int n = l(l)-1;
5  
  for (S key : params)
6  
    if (map.containsKey(key)) {
7  
      l.add(key);
8  
      l.add(map.get(key));
9  
    }
10  
  ret empty(l) ? null : toObjectArray(l);
11  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021999
Snippet name: passParams
Eternal ID of this version: #1021999/1
Text MD5: 153fe680861355d100ff153f1cc2c5cb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-05 09:35:18
Source code size: 260 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 282 / 316
Referenced in: [show references]