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)

static ItIt<S> tlft_iterator(S s) {
  ItIt<S> it = lines_iterator(s);
  ret iff_endOnNull(func -> S {
    while (it.hasNext()) {
      S line = it.next();
      if (nempty(line = trim(line))) ret line;
    }
    null;
  });
}

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: 265 / 294
Version history: 1 change(s)
Referenced in: [show references]