static L flattenList2(O... a) { new L l; if (a != null) for (O x : a) if (x instanceof Collection) for (O sub : (Collection) x) l.addAll(flattenList2(sub)); else if (x != null) l.add(x); ret l; }
Began life as a copy of #1004447
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017122 |
Snippet name: | flattenList2 |
Eternal ID of this version: | #1017122/5 |
Text MD5: | 50732e25be53342a80c3c63750126dd7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-27 14:30:01 |
Source code size: | 238 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 484 / 531 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |