Libraryless. Click here for Pure Java version (2214L/14K).
1 | static <A> L<A> subList_cloneIfDifferent(L<A> l, int startIndex, int endIndex) {
|
2 | L<A> l2 = subList(l, startIndex, endIndex); |
3 | ret l == l2 ? l : cloneList(l2); |
4 | } |
5 | |
6 | static <A> L<A> subList_cloneIfDifferent(L<A> l, int startIndex) {
|
7 | L<A> l2 = subList(l, startIndex); |
8 | ret l == l2 ? l : cloneList(l2); |
9 | } |
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: | 364 / 500 |
| Referenced in: | [show references] |