1 | static <A> L<A> llNotNulls(A... a) { |
2 | ArrayList l = new(l(a)); |
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 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: | 302 / 354 |
Version history: | 2 change(s) |
Referenced in: | [show references] |