Warning: session_start(): open(/var/lib/php/sessions/sess_shhg6m5h4divg1tvgl4ak7v2a6, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
subList_cloneIfDifferent [1027262]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1027262 // subList_cloneIfDifferent

JavaX fragment (include) [tags: use-pretranspiled]

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);
}

Author comment

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: 543 / 669
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)