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

5
LINES

< > BotCompany Repo | #1009591 // setAndSave - set global variable and save it with save()

JavaX fragment (include)

static <A> A setAndSave(S var, A value) {
  set(mc(), var, value);
  save(var);
  ret value;
}

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: #1009591
Snippet name: setAndSave - set global variable and save it with save()
Eternal ID of this version: #1009591/1
Text MD5: 5e4191c0515e4d81252fd034df353821
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-09 17:25:44
Source code size: 98 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 477 / 503
Referenced in: [show references]