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

7
LINES

< > BotCompany Repo | #1019410 // singlePlusArrayPlus

JavaX fragment (include)

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

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: 235 / 272
Referenced in: [show references]