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

13
LINES

< > BotCompany Repo | #1001241 - concatLists

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (59L/1K).

static <A> L<A> concatLists(Iterable<A>... lists) {
  new L<A> l;
  if (lists != null) for (Iterable<A> list : lists)
    addAll(l, list);
  return l;
}

static <A> L<A> concatLists(Collection<? extends Iterable<A>> lists) {
  new L<A> l;
  if (lists != null) for (Iterable<A> list : lists)
    addAll(l, list);
  return l;
}

download  show line numbers  debug dex   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, omdjrrnzbjjv, onxytkatvevr, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1001241
Snippet name: concatLists
Eternal ID of this version: #1001241/8
Text MD5: 14f5b4c1805e0a75850f54aae67a6128
Transpilation MD5: 73b88e02ef4ac73afa123f1954a97b0a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-28 12:41:02
Source code size: 339 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 502 / 2041
Version history: 7 change(s)
Referenced in: [show references]

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