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

5
LINES

< > BotCompany Repo | #1020941 // createOrAddToSyncList

JavaX fragment (include)

1  
static <A> L<A> createOrAddToSyncList(L<A> list, A a) {
2  
  if (list == null) list = syncList();
3  
  list.add(a);
4  
  ret list;
5  
}

Author comment

Began life as a copy of #1019392

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020941
Snippet name: createOrAddToSyncList
Eternal ID of this version: #1020941/1
Text MD5: 05f6fa7e5f9fa23a5799d3788ec9c69d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-12 15:19:28
Source code size: 127 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 391 / 412
Referenced in: [show references]