static AutoCloseable temp_ai_setVar(fS var, O value) { final Map<S, O> prev = ai_getOrCreateVars(); fO oldValue = prev.put(var, value); ret new AutoCloseable { public void close() { mapPut(prev, var, oldValue); ai_setVars(prev); }}; }
Began life as a copy of #1012987
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: | #1013428 |
Snippet name: | temp_ai_setVar - replaces var temporarily |
Eternal ID of this version: | #1013428/3 |
Text MD5: | 5ecf915224902e95fa4af1b5a59440ba |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-06 07:14:33 |
Source code size: | 257 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 438 / 467 |
Version history: | 2 change(s) |
Referenced in: | [show references] |