1 | static <A> L<A> iteratorToList(Iterator<A> i) { |
2 | new L<A> l; |
3 | while (i.hasNext()) l.add(i.next()); |
4 | ret l; |
5 | } |
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: | 533 / 581 |
Referenced in: | [show references] |