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

5
LINES

< > BotCompany Repo | #1023121 - addDyn_sync - add to list and create list if necessary, use synchroList

JavaX fragment (include)

static <A> L<A> addDyn_sync(L<A> l, A a) {
  if (l == null) l = synchroList();
  l.add(a);
  ret l;
}

Author comment

Began life as a copy of #1007606

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1023121
Snippet name: addDyn_sync - add to list and create list if necessary, use synchroList
Eternal ID of this version: #1023121/1
Text MD5: e92f99788241c95a50e6f59ccc24b6e2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-11 14:53:03
Source code size: 105 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 84 / 96
Referenced in: [show references]

Formerly at http://tinybrain.de/1023121 & http://1023121.tinybrain.de