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

7
LINES

< > BotCompany Repo | #1020086 // nemptyCollections - only non-empty collections

JavaX fragment (include)

static <A extends Collection> L<A> nemptyCollections(Collection<A> c) {
  new L<A> l;
  for (A x : unnull(c))
    if (nempty(x))
      l.add(x);
  ret l;
}

Author comment

Began life as a copy of #1005053

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: #1020086
Snippet name: nemptyCollections - only non-empty collections
Eternal ID of this version: #1020086/4
Text MD5: 8785af5014b7a8b5bac8690dd890312e
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:33
Source code size: 161 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 271 / 287
Version history: 3 change(s)
Referenced in: [show references]