1 | static O[] flattenArray(O... a) { |
2 | new L l; |
3 | for (O x : a) |
4 | if (x instanceof O[]) |
5 | l.addAll(asList((O[]) x)); |
6 | else |
7 | l.add(x); |
8 | ret asObjectArray(l); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003769 |
Snippet name: | flattenArray |
Eternal ID of this version: | #1003769/1 |
Text MD5: | 6557535416d4c9f68bd29a696c3ab86f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-26 23:02:24 |
Source code size: | 178 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 619 / 633 |
Referenced in: | [show references] |