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

15
LINES

< > BotCompany Repo | #1001241 - concatLists

JavaX fragment (include)

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

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

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1001241
Snippet name: concatLists
Eternal ID of this version: #1001241/5
Text MD5: 2e8abf537432829fa721a35789688e8b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-22 17:34:28
Source code size: 395 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 458 / 1949
Version history: 4 change(s)
Referenced in: [show references]

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