static float[] concatFloatArrays(L<float[]> arrays) { int l = 0; for (float[] a : unnull(arrays)) l += l(a); float[] x = new float[l]; int i = 0; for (float[] a : unnull(arrays)) if (a != null) { System.arraycopy(a, 0, x, i, l(a)); i += l(a); } ret x; }
Began life as a copy of #1016682
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025104 |
Snippet name: | concatFloatArrays (allows null arrays) |
Eternal ID of this version: | #1025104/4 |
Text MD5: | df9822abe51c52c702feeefa05b33d00 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-05 15:52:22 |
Source code size: | 287 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 232 / 286 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1026923 - concatDoubleArrays (allows null arrays) |