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

10
LINES

< > BotCompany Repo | #1022556 // tlft_iterator - tlft as iterator

JavaX fragment (include)

1  
static ItIt<S> tlft_iterator(S s) {
2  
  ItIt<S> it = lines_iterator(s);
3  
  ret iff_endOnNull(func -> S {
4  
    while (it.hasNext()) {
5  
      S line = it.next();
6  
      if (nempty(line = trim(line))) ret line;
7  
    }
8  
    null;
9  
  });
10  
}

Author comment

Began life as a copy of #1000641

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022556
Snippet name: tlft_iterator - tlft as iterator
Eternal ID of this version: #1022556/2
Text MD5: ce9ddd59e80d52a3548215a0ed23d1bd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-21 11:08:18
Source code size: 234 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 295
Version history: 1 change(s)
Referenced in: [show references]