Libraryless. Click here for Pure Java version (1699L/11K).
static float[] subFloatArray(float[] b, int start) { ret subFloatArray(b, start, l(b)); } static float[] subFloatArray(float[] b, int start, int end) { start = max(start, 0); end = min(end, l(b)); if (start == 0 && end == l(b)) ret b; if (start >= end) ret new float[0]; float[] x = new float[end-start]; System.arraycopy(b, start, x, 0, end-start); ret x; }
Began life as a copy of #1024596
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: | #1024603 |
Snippet name: | subFloatArray |
Eternal ID of this version: | #1024603/1 |
Text MD5: | c0f3a15a2bd18c9050444891ef7e8603 |
Transpilation MD5: | 8c3cfe702efa4089cf527fab41eabbea |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-19 20:27:20 |
Source code size: | 386 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 195 / 266 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1036280 - subFloatArrayAsDoubleArray |