Warning: session_start(): open(/var/lib/php/sessions/sess_698nb94rm7amp1rb5fv52o2jpk, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
syncListPlus - list plus more elements, sync on list [1030441]

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

6
LINES

< > BotCompany Repo | #1030441 // syncListPlus - list plus more elements, sync on list

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2556L/16K).

1  
static <A> L<A> syncListPlus(Collection<A> l, A... more) {
2  
  if (l == null) ret asList(more);
3  
  synchronized(collectionMutex(l)) {
4  
    ret concatLists(l, asList(more));
5  
  }
6  
}

Author comment

Began life as a copy of #1003336

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030441
Snippet name: syncListPlus - list plus more elements, sync on list
Eternal ID of this version: #1030441/1
Text MD5: 7fc17c1f431f39c3553f5f5c3a4bb47f
Transpilation MD5: 5dfb0f62650ad6400694a66b0707ae6a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-17 18:45:30
Source code size: 179 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 645 / 816
Referenced in: [show references]