static O[] concatArrays(O[]... arrays) { int l = 0; for (O[] a : arrays) l += l(a); O[] x = new O[l]; int i = 0; for (O[] a : arrays) if (a != null) { System.arraycopy(a, 0, x, i, l(a)); i += l(a); } ret x; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003113 |
Snippet name: | concatArrays (allows null arrays) |
Eternal ID of this version: | #1003113/1 |
Text MD5: | eba005fccc474a06482dc2a51b2e7b30 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-06-03 03:58:07 |
Source code size: | 242 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 795 / 860 |
Referenced in: | [show references] |