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

9
LINES

< > BotCompany Repo | #1003769 - flattenArray

JavaX fragment (include)

static O[] flattenArray(O... a) {
  new L l;
  for (O x : a)
    if (x instanceof O[])
      l.addAll(asList((O[]) x));
    else
      l.add(x);
  ret asObjectArray(l);
}

download  show line numbers  debug dex   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

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: 413 / 407
Referenced in: [show references]

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