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

6
LINES

< > BotCompany Repo | #1021159 // changeParam

JavaX fragment (include)

static O[] changeParam(O[] params, S name, O value) {
  if (eq(optPar(params, name), value)) ret params;
  Map map = paramsToOrderedMap(params);
  map.put(name, value);
  ret mapToParams(map);
}

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: #1021159
Snippet name: changeParam
Eternal ID of this version: #1021159/1
Text MD5: 870df5ea305675960048684beebff40a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-31 05:42:51
Source code size: 199 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 264 / 313
Referenced in: [show references]