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

9
LINES

< > BotCompany Repo | #1024347 // tlftifyLineIterator

JavaX fragment (include)

static ItIt<S> tlftifyLineIterator(Iterator<S> it) {
  ret it == null ? null : 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 #1022556

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024347
Snippet name: tlftifyLineIterator
Eternal ID of this version: #1024347/1
Text MD5: b56d9a6585f274b31ea5e488c6bd8fe9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-04 16:03:59
Source code size: 236 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 192
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)