1 | static AutoCloseable temp_ai_setVars(Map<S, O> map) { |
2 | final Map<S, O> prev = ai_getVars(); |
3 | ai_setVars(map); |
4 | ret new AutoCloseable { public void close() { |
5 | ai_setVars(prev); |
6 | }}; |
7 | } |
8 | |
9 | static AutoCloseable temp_ai_setVars(O... values) { |
10 | ret temp_ai_setVars(paramsToMap(values)); |
11 | } |
Began life as a copy of #1012912
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: | #1012987 |
Snippet name: | temp_ai_setVars - replaces old vars temporarily |
Eternal ID of this version: | #1012987/1 |
Text MD5: | a83195796319125eea51469c07e3a92e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-19 17:15:18 |
Source code size: | 298 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 373 / 410 |
Referenced in: | [show references] |