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

4
LINES

< > BotCompany Repo | #1009548 // defaultVarTo

JavaX fragment (include)

1  
static <A> IVar<A> defaultVarTo(IVar<A> v, A value) {
2  
  if (!v.has()) v.set(value);
3  
  ret v;
4  
}

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: #1009548
Snippet name: defaultVarTo
Eternal ID of this version: #1009548/1
Text MD5: c0ffcd92472e86e4bc66fc58c384ba74
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-07 18:12:12
Source code size: 97 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 521
Referenced in: [show references]