static <A, B> bool mapPut_trueIfChanged(Map<A, B> map, A key, B value) { if (map != null && key != null && value != null) if (eq(map.get(key), value)) false; else ret true with map.put(key, value); false; }
Began life as a copy of #1007227
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: | #1015755 |
Snippet name: | mapPut_trueIfChanged |
Eternal ID of this version: | #1015755/2 |
Text MD5: | 9dfaaa70a2c31e30a141281f57d1686c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-27 00:20:45 |
Source code size: | 223 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 473 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1016248 - mapPut_returnKey #1022373 - mapPut_trueIfChangedIC #1027583 - mapPutOrRemove_trueIfChanged |