1 | static S mechHashMapPut(S name, S key, S value) { |
2 | SS map = mechHashMap(name); |
3 | if (containsKey(map, key)) { |
4 | map.put(key, value); |
5 | ret editMechMap(name, map); |
6 | } else |
7 | ret appendToMechMap_noUniq(name, litmap(key, value)); |
8 | } |
Began life as a copy of #1020458
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, lnbujpyubztb, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1021664 |
Snippet name: | mechHashMapPut - add or replace entry, honor case, just append at the end |
Eternal ID of this version: | #1021664/1 |
Text MD5: | 843f0a402df009891f587856fa220d00 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-23 18:25:15 |
Source code size: | 243 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 276 / 362 |
Referenced in: | [show references] |