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

7
LINES

< > BotCompany Repo | #1019410 // singlePlusArrayPlus

JavaX fragment (include)

1  
static <A> A[] singlePlusArrayPlus(A a, A[] l, A... more) {
2  
  A[] out = newObjectArrayOfSameType(l, 1+l(l)+l(more));
3  
  out[0] = a;
4  
  arraycopy(l, 0, out, 1, l(l));
5  
  arraycopy(more, 0, out, 1+l(l), l(more));
6  
  ret out;
7  
}

Author comment

Began life as a copy of #1019407

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019410
Snippet name: singlePlusArrayPlus
Eternal ID of this version: #1019410/1
Text MD5: 59eb82ab69d7936ec30b49e287908e10
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-05 01:27:43
Source code size: 226 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 240 / 276
Referenced in: [show references]