static S[] subStringArray(S[] 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 S[0]; S[] x = new S[end-start]; System.arraycopy(b, start, x, 0, end-start); ret x; }
Began life as a copy of #1014874
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017694 |
Snippet name: | subStringArray |
Eternal ID of this version: | #1017694/1 |
Text MD5: | 935bf86d8be9309d46c23d2ca85cd92e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-03 14:11:52 |
Source code size: | 268 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 371 / 404 |
Referenced in: | [show references] |