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

8
LINES

< > BotCompany Repo | #1021461 // nemptyLists

JavaX fragment (include)

static <A, B extends Collection<A>> L<B> nemptyLists(Collection<B> l) {
  if (l == null) null;
  new L<B> out;
  for (B x : l)
    if (nempty(x))
      out.add(x);
  ret out;
}

Author comment

Began life as a copy of #1013202

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021461
Snippet name: nemptyLists
Eternal ID of this version: #1021461/4
Text MD5: 05cd5b90548f681321c49d1d31a5f208
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-13 17:06:14
Source code size: 183 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 172 / 211
Version history: 3 change(s)
Referenced in: [show references]