Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1016546 // tempIncIntVar

JavaX fragment (include)

1  
static AutoCloseable tempIncIntVar(final Var<Int> v) {
2  
  if (v == null) null;
3  
  v.set(v!+1);
4  
  ret autocloseable { v.set(v!-1); };
5  
}

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: #1016546
Snippet name: tempIncIntVar
Eternal ID of this version: #1016546/1
Text MD5: a1e17003acd6b95cfdb24c922cd83093
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-23 14:26:33
Source code size: 136 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 367 / 411
Referenced in: [show references]