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

3
LINES

< > BotCompany Repo | #1027856 // allSubListsOfLength_iterator

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

Libraryless. Click here for Pure Java version (2623L/17K).

static <A> ItIt<L<A>> allSubListsOfLength_iterator(int m, L<A> l) {
  ret mapI(countIterator_inclusive(0, l(l)-m), i -> subList(l, i, i+m));
}

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: #1027856
Snippet name: allSubListsOfLength_iterator
Eternal ID of this version: #1027856/2
Text MD5: 5bb42210493a0f06f96bbc030e685e99
Transpilation MD5: 815dfb7bc27d51559d4729a0dbdb9992
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-16 11:31:42
Source code size: 144 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 101 / 160
Version history: 1 change(s)
Referenced in: [show references]