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

7
LINES

< > BotCompany Repo | #1034970 // cyclicSubList function - see cyclicGet

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

Libraryless. Click here for Pure Java version (5105L/28K).

1  
static <A> L<A> cyclicSubList(L<A> l, int startIndex, int endIndex) {
2  
  if (l == null) null;
3  
  new L<A> subList;
4  
  for (int i = startIndex; i < endIndex; i++)
5  
    subList.add(cyclicGet(l, i));
6  
  ret subList;
7  
}

Author comment

Began life as a copy of #1002310

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034970
Snippet name: cyclicSubList function - see cyclicGet
Eternal ID of this version: #1034970/1
Text MD5: 77b18eb32b626f8912aabb39f9572841
Transpilation MD5: f977c1f4bda9b83d088731ff013aa0a5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-19 17:37:03
Source code size: 217 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 210
Referenced in: [show references]