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

8
LINES

< > BotCompany Repo | #1014449 // printIterate_nl - iterate and print each element as it is retrieved - prints a new line before each element

JavaX fragment (include)

1  
static <A> IterableIterator<A> printIterate_nl(Iterable<A> it) {
2  
  final Iterator<A> i = iterator(it);
3  
  ret iff(func -> O {
4  
    if (!i.hasNext()) ret endMarker();
5  
    print();
6  
    ret print(i.next());
7  
  });
8  
}

Author comment

Began life as a copy of #1014419

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: #1014449
Snippet name: printIterate_nl - iterate and print each element as it is retrieved - prints a new line before each element
Eternal ID of this version: #1014449/1
Text MD5: 73fde4c24be43c92b077824427842c49
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-21 19:15:28
Source code size: 216 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 382
Referenced in: [show references]