1 | static S[] subStringArray(S[] b, int start, int end) { |
2 | start = max(start, 0); end = min(end, l(b)); |
3 | if (start == 0 && end == l(b)) ret b; |
4 | if (start >= end) ret new S[0]; |
5 | S[] x = new S[end-start]; |
6 | System.arraycopy(b, start, x, 0, end-start); |
7 | ret x; |
8 | } |
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: | 372 / 405 |
Referenced in: | [show references] |