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

8
LINES

< > BotCompany Repo | #1020458 // mechMapPut - add or replace entry

JavaX fragment (include)

1  
static S mechMapPut(S name, S key, S value) {
2  
  SS map = mechMap(name);
3  
  if (containsKey(map, key)) {
4  
    map.put(key, value);
5  
    ret editMechMap(name, map);
6  
  } else
7  
    ret appendToMechMap(name, litmap(key, value));
8  
}

Author comment

Began life as a copy of #1014452

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1020458
Snippet name: mechMapPut - add or replace entry
Eternal ID of this version: #1020458/4
Text MD5: afb04d4d53b4bae8ec966496f5af0d63
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-22 23:42:46
Source code size: 228 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 296 / 337
Version history: 3 change(s)
Referenced in: [show references]