Libraryless. Click here for Pure Java version (2214L/14K).
static <A> L<A> subList_cloneIfDifferent(L<A> l, int startIndex, int endIndex) { L<A> l2 = subList(l, startIndex, endIndex); ret l == l2 ? l : cloneList(l2); } static <A> L<A> subList_cloneIfDifferent(L<A> l, int startIndex) { L<A> l2 = subList(l, startIndex); ret l == l2 ? l : cloneList(l2); }
Began life as a copy of #1008164
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027262 |
Snippet name: | subList_cloneIfDifferent |
Eternal ID of this version: | #1027262/1 |
Text MD5: | 103065868ad97f35f435de3f6c7903c5 |
Transpilation MD5: | 069853cd67f08837f7fc345993f37cac |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-28 12:11:17 |
Source code size: | 312 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 184 / 274 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |