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).

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

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