Libraryless. Click here for Pure Java version (59L/1K).
1 | static <A> L<A> concatLists(Iterable<A>... lists) { |
2 | new L<A> l; |
3 | if (lists != null) for (Iterable<A> list : lists) |
4 | addAll(l, list); |
5 | return l; |
6 | } |
7 | |
8 | static <A> L<A> concatLists(Collection<? extends Iterable<A>> lists) { |
9 | new L<A> l; |
10 | if (lists != null) for (Iterable<A> list : lists) |
11 | addAll(l, list); |
12 | return l; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, omdjrrnzbjjv, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, 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: | 885 / 2599 |
Version history: | 7 change(s) |
Referenced in: | [show references] |