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

5
LINES

< > 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;
  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   

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

No comments. add comment

Snippet ID: #1006902
Snippet name: llNonNulls - literal list, include only non-null elements
Eternal ID of this version: #1006902/4
Text MD5: 076685cedf40a950ba9a78313d6d72d5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-14 23:04:57
Source code size: 109 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 262
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1006902 & http://1006902.tinybrain.de