1 | static short[] subShortArray(short[] 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 short[0]; |
5 | short[] x = new short[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 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017153 |
| Snippet name: | subShortArray |
| Eternal ID of this version: | #1017153/1 |
| Text MD5: | 9a3d45e20f022f99acad860acc819b77 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-13 12:59:23 |
| Source code size: | 287 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 698 / 728 |
| Referenced in: | [show references] |