static <A> HashSet<A> concatListsToSet(Collection<A>... lists) { new HashSet<A> l; for (Collection<A> list : lists) if (list != null) l.addAll(list); return l; } static <A> HashSet<A> concatListsToSet(Collection<? extends Collection<A>> lists) { new HashSet<A> l; for (Collection<A> list : lists) if (list != null) l.addAll(list); return l; }
Began life as a copy of #1001241
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015558 |
Snippet name: | concatListsToSet (HashSet) |
Eternal ID of this version: | #1015558/1 |
Text MD5: | 8a4564a7e2a1ad1ef570583ed18bf84d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-17 14:05:22 |
Source code size: | 391 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 417 / 464 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1022566 - concatListsToCISet #1026302 - concatToOrderedSet (LinkedHashSet) |