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

5
LINES

< > BotCompany Repo | #1016546 // tempIncIntVar

JavaX fragment (include)

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

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: 298 / 338
Referenced in: [show references]