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  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

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: 336 / 381
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029655 - addDyn_quickSync - add to list and create list if necessary, synchronize on list