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

3
LINES

< > BotCompany Repo | #1029829 // subListOrFull - return full list when range is null

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

Libraryless. Click here for Pure Java version (2586L/16K).

static <A> L<A> subListOrFull(L<A> l, IntRange r) {
  ret r == null ? l : subList(l, r.start, r.end);
}

Author comment

Began life as a copy of #1002310

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029829
Snippet name: subListOrFull - return full list when range is null
Eternal ID of this version: #1029829/1
Text MD5: bf9a299f767e887f1d063bd87089c000
Transpilation MD5: 2618b4fb2496a20213ac669838ad5138
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-21 10:30:50
Source code size: 105 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 141 / 210
Referenced in: [show references]