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

5
LINES

< > BotCompany Repo | #1010349 // iteratorToList

JavaX fragment (include)

static <A> L<A> iteratorToList(Iterator<A> i) {
  new L<A> l;
  while (i.hasNext()) l.add(i.next());
  ret l;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010349
Snippet name: iteratorToList
Eternal ID of this version: #1010349/1
Text MD5: 01f5c0a960e0e60eea8f6eec8a18e64b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-12 03:02:29
Source code size: 115 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 531 / 579
Referenced in: [show references]