1 | static AutoCloseable temp_ai_setVar(fS var, O value) { |
2 | final Map<S, O> prev = ai_getOrCreateVars(); |
3 | fO oldValue = prev.put(var, value); |
4 | ret new AutoCloseable { public void close() { |
5 | mapPut(prev, var, oldValue); |
6 | ai_setVars(prev); |
7 | }}; |
8 | } |
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: | 439 / 469 |
Version history: | 2 change(s) |
Referenced in: | [show references] |