1 | static bool setAndSaveIfChanged(S var, O value) { |
2 | if (eq(get(mc(), var), value)) false; |
3 | setAndSave(var, value); |
4 | true; |
5 | } |
Began life as a copy of #1009591
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: | #1014784 |
Snippet name: | setAndSaveIfChanged - set global variable and save it with save() |
Eternal ID of this version: | #1014784/4 |
Text MD5: | 14efdfb3f7e71bc0870eccef9cee81b4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-02 11:20:02 |
Source code size: | 129 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 356 / 394 |
Version history: | 3 change(s) |
Referenced in: | [show references] |