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

3
LINES

< > BotCompany Repo | #1026125 // unpackIteratorOfLists - return one element at a time

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

Libraryless. Click here for Pure Java version (2296L/15K).

static <A, B extends Iterable<A>> ItIt<A> unpackIteratorOfLists(Iterator<B> it) {
  ret nestedIterator(it, func(B l) -> Iterator<A> { iterator(l) });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026125
Snippet name: unpackIteratorOfLists - return one element at a time
Eternal ID of this version: #1026125/1
Text MD5: 8d8adbcf33b92f7cd452b650a5c4549d
Transpilation MD5: 5a94c2f40e7c0d12efc288ba00acd20b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-25 20:28:35
Source code size: 153 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 111 / 181
Referenced in: [show references]