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


< > BotCompany Repo | #1006902 // llNonNulls - literal list, include only non-null elements

JavaX fragment (include)

static <A> List<A> llNonNulls(A... a) {
  new L<A> l;
  if (a != null) for (A x : a) if (x != null) l.add(x);
  ret l;

Author comment

Began life as a copy of #1003382

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006902
Snippet name: llNonNulls - literal list, include only non-null elements
Eternal ID of this version: #1006902/5
Text MD5: 1e32972287bdff93587ce980823fef7f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-11 23:49:28
Source code size: 124 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 540 / 596
Version history: 4 change(s)
Referenced in: [show references]