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

7
LINES

< > BotCompany Repo | #1005053 // filterNempty - only non-empty strings

JavaX fragment (include)

1  
static L<S> filterNempty(Collection<S> c) {
2  
  new L<S> l;
3  
  for (S x : unnull(c))
4  
    if (nempty(x))
5  
      l.add(x);
6  
  ret l;
7  
}

Author comment

Began life as a copy of #1004806

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005053
Snippet name: filterNempty - only non-empty strings
Eternal ID of this version: #1005053/2
Text MD5: b62d7d229b197fee975ea8fa04200497
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-06 21:30:46
Source code size: 133 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 558 / 608
Version history: 1 change(s)
Referenced in: [show references]