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

9
LINES

< > BotCompany Repo | #1008560 // notNullOnly - drop nulls from list

JavaX fragment (include)

static <A> L<A> notNullOnly(L<A> l) {
  new L<A> out;
  for (A a : unnull(l)) if (a != null) out.add(a);
  ret out;
}

static <A> L<A> notNullOnly(A... l) {
  ret notNullOnly(asList(l));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008560
Snippet name: notNullOnly - drop nulls from list
Eternal ID of this version: #1008560/2
Text MD5: 9dc75ff65b6a96590e535bba1e4de55f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-27 01:27:11
Source code size: 196 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 418 / 450
Version history: 1 change(s)
Referenced in: [show references]