1 | static <A> IterableIterator<A> printIterate(Iterable<A> it) { |
2 | final Iterator<A> i = iterator(it); |
3 | ret iff(func -> O { |
4 | if (!i.hasNext()) ret endMarker(); |
5 | ret print(i.next()); |
6 | }); |
7 | } |
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: | #1014419 |
Snippet name: | printIterate - iterate and print each element as it is retrieved |
Eternal ID of this version: | #1014419/2 |
Text MD5: | 3b8e84c61f4eb41ec8e8749ba38bca08 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-21 17:06:01 |
Source code size: | 199 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 381 / 418 |
Version history: | 1 change(s) |
Referenced in: | [show references] |