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)

static <A> IterableIterator<A> printIterate_nl(Iterable<A> it) {
  final Iterator<A> i = iterator(it);
  ret iff(func -> O {
    if (!i.hasNext()) ret endMarker();
    print();
    ret print(i.next());
  });
}

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: 342 / 381
Referenced in: [show references]