1 | static <A> List<A> llNonNulls(A... a) { |
2 | new L<A> l; |
3 | if (a != null) for (A x : a) if (x != null) l.add(x); |
4 | ret l; |
5 | } |
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: | 599 / 651 |
Version history: | 4 change(s) |
Referenced in: | [show references] |