Libraryless. Click here for Pure Java version (3306L/18K).
static <A> void setVar(IVar<A> v, A value) { if (v != null) v.set(value); } static <A> IVF1<A> setVar(IVar<A> v) { ret a -> { if (v != null) v.set(a); }; }
Began life as a copy of #1015299
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016371 |
| Snippet name: | setVar |
| Eternal ID of this version: | #1016371/4 |
| Text MD5: | a3c6ec9e71ff8102a11e7ffe82905aee |
| Transpilation MD5: | 84683ac2744f8af36d566c56214e4360 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-11 12:57:01 |
| Source code size: | 166 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 679 / 805 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019864 - setVar_returnPrevious #1022972 - setVar_trueIfChanged - synchronized #1032089 - setVarWithConversion |