1 | static ItIt<S> tlftifyLineIterator(Iterator<S> it) { |
2 | ret it == null ? null : iff_endOnNull(func -> S { |
3 | while (it.hasNext()) { |
4 | S line = it.next(); |
5 | if (nempty(line = trim(line))) ret line; |
6 | } |
7 | null; |
8 | }); |
9 | } |
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: | 162 / 192 |
Referenced in: | [show references] |