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

5
LINES

< > BotCompany Repo | #1013194 // strictSetIC - returns true if value can be put strictly (not overwriting anything)

JavaX fragment (include)

static bool strictSetIC(IVar<S> v, S value) {
  S old = v!;
  if (old == null) { v.set(value); true; }
  ret eqic(old, value);
}

Author comment

Began life as a copy of #1012620

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: #1013194
Snippet name: strictSetIC - returns true if value can be put strictly (not overwriting anything)
Eternal ID of this version: #1013194/1
Text MD5: 8cc3e55605b881e008aa76ce6c39ab36
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-27 06:55:11
Source code size: 132 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 370 / 391
Referenced in: [show references]