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

5
LINES

< > BotCompany Repo | #1023568 // llNotNulls

JavaX fragment (include)

static <A> L<A> llNotNulls(A... a) {
  ArrayList l = new(l(a));
  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 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023568
Snippet name: llNotNulls
Eternal ID of this version: #1023568/3
Text MD5: d3e431719a8450fb7d5f49cb9969612e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-16 00:00:51
Source code size: 134 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 352
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1026241 - llNempties